fork(2) download
  1. # your code goes here
  2. class Employee(object):
  3. "class name is provided for python"
  4.  
  5. def _init_(self, name, salary):
  6. self.name = name
  7. self.salary = salary
  8. print("self.name=", name, "self.salary=", salary)
  9.  
  10. empdetails("provide the name and salary")
  11.  
  12.  
Runtime error #stdin #stdout #stderr 0s 23296KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 10, in <module>
NameError: name 'empdetails' is not defined