list1 = [20, 20, 20] n=int(input("eNTER a number to search in the list")) for i in list1: if n==i: list1.remove(n) print(list1)