I'm trying to get an if
statement to work, but for some reasons it doesn't work. It should be very simple.
Assume that the string title = "Today I went to the sea"
My code is:
if "Today" or "sea" in title:
print 1
if "Today" or "sea" not in title:
print 1
Both specifications result in 1.
Aucun commentaire:
Enregistrer un commentaire