Please could someone help me out with this code

So basically this code is not related to a fcc exercise but from a separate set of exercises, I generally dont like posting unrelated things but im just genuinely stumped , its a very simple bit of code and I just cant see why it is raising a syntax error, so I would be truly grateful for any assistance ! Thank you !

class Employee:
    """Take in user information (including salary) and print out each users profile)"""

    def __init__(self, first_name, last_name, salary):
        """Initialise information"""
        self.first_name = first_name
        self.last_name = last_name
        self.salary = salary

    def return_user(self):
        """Return neatly formatted user info"""
        print(f"Name: {first_name} {last_name}  salary: {self.salary}")

    def give_raise(self, raise):
        """Add the given raise to the salary"""
        self.raise = raise
        self.salary += self.raise
        return self.salary

my_employee = Employee('Jacob', 'Lloyd-warren', 80000)


  1. raise is a key word in python! Try to replace it with an other word.
  2. In your print function of return_user(self) use self.first_name and self.last_name.

Ahh i see ! thank you so much :0 !

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.