for in print if in print del x-1 print

1
2
3
4
5
6
7
a = [1,2,3,4,5]
for x in a:
print x
if x in (3,4):
print a
del a[x-1]
print a