Commit 6bb4c21f by BellCodeEditor

save project

parent 8f4cc56e
Showing with 10 additions and 0 deletions
a='c'
b=3
list=['a',1,'b',2,'d',4]
for i in range(len(list)):
if i%2==1 and list[i]>=b:
list.insert(i-1,a)
list.insert(i,b)
print(list)
\ 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