Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
shivareddy error
#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 @classmethod def change_scenes(cls, new_action): cls.action_scenes=new_action shiva=arjunreddy("shout",50,"cry","laugh") shiva.change_scenes(99) print(shiva.action_scenes)
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
ls
PyStack
10 25 58
abstractmethod
python decorator with parameter example
List comprehension, join, split usage
Country Flags
134
Sort word in alphabetical order
Rektangel
Please log in to post a comment.