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?
Die Suche ergab 1 Treffer
- Sonntag 26. August 2012, 18:50
- Forum: Allgemeine Fragen
- Thema: if-Anweisung mit and
- Antworten: 2
- Zugriffe: 795