liste=[0,0,0,0,0,0,0] for x in range(0,7): if x**3-12*x**2+36*x>=5: liste[x]=1 print(liste)