Commit bc92bf07 by BellCodeEditor

save project

parent 22354288
Showing with 13 additions and 0 deletions
class Hero:
def __init__(salf,hp,attack)
salf.level = 1
salf.hp = hp
salf.attack = attack
yase = Hero('yase',300,20)
print(yase.hp)
def kk():
print(yase.hp)
yase.attack = yase.attack + 50
yase.hp = yase.hp + 50
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