Commit 2bfe611b by BellCodeEditor

save project

parent f1a61b49
Showing with 9 additions and 9 deletions
...@@ -3,13 +3,14 @@ class Hero: ...@@ -3,13 +3,14 @@ class Hero:
self.age=age self.age=age
self.level=level self.level=level
self.attack=attack self.attack=attack
Dio=Hero(28,1,20) Dio=Hero(24,1,20)
def konodioda(self):
self.age+=1
self.attack+=50
self.level+=1
JoJo=Hero(24,1,15)
konodioda(JoJo)
print(JoJo.age)
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