Syntax Error
So spent about an hour trying to fix this and came up stumped. Just a beginner btw so I might of missed something. It shows syntax error at line 35 where self.employees = employees, look at my profile if you need the code. class Employee(): raise_amount = 1.10 def __init__(self,first,last,pay): self.first = first self.last = last self.pay = pay def fullname(self): print(self.first + '' + self.last) @classmethod def set_raise_amount(cls,amount): cls.raise_amount = amount @classmethod def from_str(cls,emp_str): first, last, pay, sector = emp_str.split('-') return Employee(first, last, pay, sector) class Dev(Employee): def __init__(self,first,last,pay,pro_lang): super().__init__(first,last,pay) self.pro_lang = pro_lang class Manager(Employee): def __init__(self,first,last,pay,employees=None): super().__init__(first,last,pay) if employees is None: return [] else: return self.employees = employees def show_emp(self): for emp in self.employees: print('--->' + emp.fullname()) Dev_1 = Dev('Bill','Gates',37000,'Python') Manager_1 = Manager('Dave','Schumen',50000,[Dev_1]) print(Manager_1.show_emp)