l = [1,5,3,9,10] x = input("Immetti un numero: ") for y in l: if (y==x): print "trovato" break else: print "non trovato"