x = eval(input("please input a string list:")) n = input("plieae input a repeated letter:") for i in x: if i.count(n) > 2: x.remove(i) print(x)