Commit 807fd1e3 by BellCodeEditor

save project

parent 454cacbe
Showing with 9 additions and 6 deletions
a=['1']
b=['1','2','3','4','5','6']
c=b[2:5]
a.extend(c)
print(a)
\ No newline at end of file
n='d'
powver=4
h=['a',1,'b',2,'c',3,'e',5]
for i in range(len(h)):
if i%2==1 and h[i]>=powver:
h.insert(i-1,n)
h.insert(i,powver)
print(h)
\ 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