0
Can you find error in this program?
class Employee: def__init__(self,name,age,salary,gender): self.name=name self.age=age self.salary=salary self.gender=gender def show_employee_details(self): print("the name of employee is",self.name) print("age of employee is",self.age) print("salary of employee is",self.salary) print("gender of employee is",self.gender) e=Employee("ankit",21,40000,male) e.show_employee_details()
2 ответов
0
Add a space before __init__ and put male in qoutes. That's all