Commit 8458e27c by BellCodeEditor

save project

parent 3955da3b
Showing with 24 additions and 1 deletions
import random
kk=""
key="123456"
message = "lhmSB"
message1 = input()
for i in message:
a1=i
a2=random.choice(key)
a3=random.choice(key)
a=a1+a2+a3
kk=kk+a
tt=list(kk)
tt.insert(random.randint(0,len(tt)-1),message1)
pp="".join(tt)
print(pp)
\ No newline at end of file
...@@ -5,4 +5,10 @@ class Hero: ...@@ -5,4 +5,10 @@ class Hero:
self.name=name self.name=name
self.attack=attack self.attack=attack
yase=Hero('yase',3000000000,0) yase=Hero('yase',3000000000,0)
print(yase.hp) print(yase.attack)
def LevelUp():
yase.levels+=1
yase.hp+=0
yase.attack+=20
LevelUp()
print(yase.attack)
\ 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