Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
shiva
#python 3.5.2 class arjunreddy: action_scenes=16 def __init__(self, act1,age1,act2,act3): self.act=act1 self.age=age1 self.actt=act2 self.acttt=act3 shiva=arjunreddy("fighting",50,"screaming","shouting") print(shiva.actt) @classmethod def change_scenes(cls, new_action) cls.action_scenes=new_action shiva.change_scenes(99) print(shiva.action_scenes)
run
|
edit
|
history
|
help
0
replace
pyCustomEnum
reverse words
testpgm
Infinite Fibonacci generator
gj
binary
count(even/odd)fromlist.py
Organizing Transactions
Generating subsets