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() 

21st Jan 2021, 4:02 PM
अभि
अभि - avatar
2 Answers
0
Add a space before __init__ and put male in qoutes. That's all
21st Jan 2021, 5:33 PM
Benjamin Jürgens
Benjamin Jürgens - avatar