Die Suche ergab 1 Treffer

von vonDuebel
Sonntag 26. August 2012, 18:50
Forum: Allgemeine Fragen
Thema: if-Anweisung mit and
Antworten: 2
Zugriffe: 795

if-Anweisung mit and

Hallo Leute,

ich steh grad voll auf dem Schlauch. Warum führt Python den Print-Befehl bei

y = "hallo"

if ("x" and "h") in y:
print "found"

durch, aber bei

y = "hallo"

if ("h" and "x") in y:
print "found"


nicht?