list1 = [5, 10, 15, 20, 25, 50, 20]
list1[3]=200
print ("Updated list: ", list1)
Updated list: [5, 10, 15, 200, 25, 50, 20]
list2 = [5, 20, 15, 20, 25, 50, 20]
ele=20
x=[i for i in list2 if i!=ele]
print(x)
[5, 15, 25, 50]
list1 = [10, 20, 30, 40]
list2 = [100, 200, 300, 400]
for x, y in zip(list1, list2[::-1]):
print(x, y)
10 400 20 300 30 200 40 100