Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
31 dec dil khush
#python 3.5.2 class Employee: no_of_dept=10 def __init__(self,aname,asalary,acontact,apassion): self.name=aname self.salary=asalary self.co_no=acontact self.passion=apassion bunny=Employee("bunny",45000,8446137931,"video shooting") karan=Employee("karan",67000,8446160364,"travelling") sai=Employee("sai",555000,9876767870,"coding") print(sai.salary) class Satyamurthi(Employee): south_indian_nasta="idli vada" yevadu=(Satyamurthi) yevadu.breakfast="dosa" yevadu.lunch="uttappa" yevadu.hungry="full day" print(yevadu.no_of_dept) yevadu.no_of_dept=15 print(Employee.__dict__) print(yevadu.no_of_dept)
run
|
edit
|
history
|
help
0
list_copy_shallow_deep.py
print path module python
gj2
Primes finding algorithm
Faiha - Lesson 8
shuru16
10
inerse_matrix_gauss_jordan
perform_math.py
Game2