Hi,
I was wondering if you could help me with this:
I want to make an if statement in which I would like to find a certain word in a sentence; here is what i have so far:
x = raw_input("how are you?")
if x == "fine":
print "Good."
But that, obviously, will only respond "good" when one writes "fine". I was looking for a way for the program to respond "good" to any sentence that would contain the word "fine" in it.
I'm sure it's something ridiculously easy, but I have no idea how to do it! :)
Thank you,
Miguel :)
MSN Busca: fácil, rápido, direto ao ponto. Encontre o que você quiser. Clique aqui.
-- http://mail.python.org/mailman/listinfo/python-list