Commit 0695decc by BellCodeEditor

save project

parent d6c81a0f
Showing with 12 additions and 0 deletions
class heor():
def __init__(self,a,b,c):
self.hp=a
self.level=b
self.attack=c
def upgrade():
self.hp+=40
self.level+=1
self.attack+=30
yase=heor(1,500,40)
upgrade()
print(yase.level)
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