Commit c6010e9a by BellCodeEditor

save project

parent 7dcc4e16
Showing with 9 additions and 4 deletions
a=[1] name='1'
b=[2,3,4,5,6,7] power=66
print(b[2:5]) hero=[2,30,3,37,4,52,5,89,6,98]
\ No newline at end of file for i in range(len(hero)):
if i%2==1 and hero[i]>=power:
hero.insert(i-1,name)
hero.insert(i,power)
print(hero)
print(hero[12:])
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