Commit 4225236a by BellCodeEditor

save project

parent 851cb6aa
Showing with 4 additions and 1 deletions
......@@ -12,8 +12,11 @@ for i in range(len(hero)):
hero.insert(i-1,name)
hero.insert(i,power)
break
if i%2==1 and hero[len(hero)-1]<power:
hero.append(name)
hero.append(power)
print(hero)
print(hero[-4:])
print(hero[-6:])
......
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