This question already has an answer here:
Is there any difference between the two?
t = [1,2,3,4] if 5 not in t: print "ok" if not 5 in t: print "ok" ok ok
Aucun commentaire:
Enregistrer un commentaire