Commit a76aa2d8 by BellCodeEditor

save project

parent 87842dd3
Showing with 9 additions and 5 deletions
class Hero():
def __init__(n,level,Hp,attck):
def __init__(n,level,hp,attck):
n.level=level
n.Hp=Hp
n.hp=hp
n.attck=attck
SilverAsh=Hero(n,1,1075,297)
print(SilverAsh)
\ No newline at end of file
Tom=Hero(n,1,9,6)
print(Tom)
def up():
n.level=level+1
n.hp=hp+2
n.attck=attck+3
up()
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