Hi there. There is no real issue with this excersice, but I wanted to try something for fun. In the code, the program asks what your favourite food is, you can answer anything except dogfood and it will respond to it. I want it to give a different message when I put in: dogfood
It just gives a syntax error. Could anyone elaborate on this?
print 'Welcome to the Pig Latin Translator!' # Start coding here! original = raw_input("What is your favourite food?") if len(original) > 0 and original.isalpha(): print "I also like", print original elif original = dogfood: print "I don't like" else: print 'You can only fill in letters! Try again.'
This is purely for me understanding how to do it, because I'm curious on what I could do with this. Thank you