Commit 9c9da050 by BellCodeEditor

save project

parent f437865d
Showing with 6 additions and 13 deletions
class Hero:
def __init__(self,name.hp,attacf):
self.level = 1
self.name = name
self.hp = 300
self.attacf = attacf
def upgrade():
level=level+1
yase.hp=yase.hp+50
yase.attacf=yase.attacf+50
yase=Hero("a",300,50)
print(yase.hp)
\ No newline at end of file
for b in range(1,10):
for a in range(1, b+1):
print(a,"*",b,"=",a*b,end=" ")
print()
\ 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