list1=[5,10,15,20,25,50,20]
index=list1.index(20)
list1[index]=200
print(list1)
[5, 10, 15, 200, 25, 50, 20]
list1=[5,10,15,20,25,50,20]
while 20 in list1:
list1.remove(20)
print(list1)
[5, 10, 15, 25, 50]
list1=[10,20,30,40]
list2=[100,200,300,400]
for a,b in zip(list1,list2[::-1]):
print(a,b)
10 400 20 300 30 200 40 100