Commit f1a61b49 by BellCodeEditor

auto save

parent 22354288
Showing with 16 additions and 0 deletions
class Hero:
def __init__(self,age,level,attack):
self.age=age
self.level=level
self.attack=attack
Dio=Hero(28,1,20)
def konodioda():
Dio.age+=1
Dio.attack+=50
Dio.level+=1
konodioda()
konodioda()
print(Dio.level)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment