Commit 610c73b2 by BellCodeEditor

save project

parent 14a89ca2
Showing with 4 additions and 0 deletions
......@@ -10,4 +10,7 @@ while True:
hero.insert(i-1,name)
hero.insert(i,power)
break
if i%2==1 and hero[i]<power:
hero.insert(i+1,name)
hero.insert(i+2,power)
print(hero)
\ 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