Commit dcaaea86 by BellCodeEditor

save project

parent 0e6d1b44
Showing with 9 additions and 7 deletions
class hero: class hero:
def __init__(self): def __init__(self,name,hp,attack):
self.level=1 self.c=name
self.hp=300 self.b=hp
self.attack=20 self.a=attack
yase=hero() d=hero('yase',300,20)
print(yase.hp) f=hero('simayi',500,236)
\ No newline at end of file print(d.b)
print(f.b)
\ 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