Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
raja sainik
#python 3.5.2 class Raja: no_of_sainik=55 def __init__(self, sainik_name,sainik_retirement): self.sainik_ka_naam=sainik_name self.sainik_ki_retirement=sainik_retirement sainik=Raja("rana daggupatti","17 saal baad") print(sainik.sainik_ka_naam) class Praja(Raja): def __init__(self): print("praja hoti hai raja ki") def prod(self): var="manu" var1="goru" var2="rani" var4="mastani" var5="sheru" mohanrao=(Praja) mohanrao.age=87 mohanrao.salary=6565 mohanrao.affair_with="raja ki wife" print(mohanrao.age) print(mohanrao.no_of_sainik) print(sainik.sainik_ki_retirement) print(var)
run
|
edit
|
history
|
help
0
Viki
Random module
Python_Hello_World
Depth First Search - Find path
PyAnchorAlter
adda
Variables.py
Tail recursion & Memoisation utilities
quiz3
Никита