Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
instance variable class var
#python 3.5.2 class tsec: no_of_dept=3 _no_ofproff=33 __no_ofstud=600 def __init__(self): self.no_of_dept="majnu bhai ke haath me" class chemi(tsec): no_of_dept=6 def __init__(self): #self.no_of_dept="uday bhai ke haath me" chemi_proff=["monca","himami","pandey","gopu"] info=chemi() class comps(chemi): comps_proff=["desi","videshi","meena","saleena"] cm=comps() print(cm.no_of_dept) print(info._no_ofproff) print(cm._tsec__no_ofstud) print(cm.no_of_dept)
run
|
edit
|
history
|
help
0
RESTRUCTURADO
rstring
Tax task
Prime Factors
Python3 - product lists
PyBoolNone
Tail recursion & Memoisation utilities
PrimeNumbers
khud ki kalakari
intervalos