Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
Converion of dictionary to list of tuples (Stackoverflow problem)
shuru10
Current date/time
Jaan
total_tips
RESTRUCTURADO
9th jan2
3-6.격자판 최대합
1.py
Sum of subsets (Python)
stackse - search stackoverflow differently
Please log in to post a comment.