Build a Salary Tracker - Step 11

Tell us what’s happening:

my test isn’t passing need some help please.i’ve done exactly what it says

Your code so far

class Employee:
    def __init__(self, name, level):
        self._name = name
        self._level = level

# User Editable Region

    def __str__(self):
        return f'{self.name}: {self.level}'

    def __repr__(self):
        return f"Employee('{self._name}','{self._level}')"

    

# User Editable Region

    @property
    def name(self):
        return self._name

    @property
    def level(self):
        return self._level

charlie_brown = Employee('Charlie Brown', 'trainee')
print(charlie_brown)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36

Challenge Information:

Build a Salary Tracker - Step 11

i thought i was the only one going through this same stuff

turns out nobody made a post about it

Always check the spacing of your string. You usually have a space after a comma.

As there is here:

charlie_brown = Employee('Charlie Brown', 'trainee')
1 Like

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