Commit a3899f7b by BellCodeEditor

save project

parent 250f0dd6
Showing with 8 additions and 2 deletions
......@@ -5,4 +5,10 @@ class Hero:
self.attack=attack
self.name=name
yase=Hero("yase",300,40)
print(yase.name)
\ No newline at end of file
print(yase.name)
def a():
yase.level=yase.level+1
yase.hp=yase.hp+20
yase.attack=yase.attack+5
a()
print(yase.hp)
\ 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