I'm a little confused with this exercise.
In the console i have to type in two words, or submit a blank entry into the console to get a reply. (so i type in the first after 'enter a word', and then, before i can proceed, i have to type another word on the line below) i'm not sure if this is correct
if i type in two different words, even if they are both legitimate, i get the error 'It looks like your code does not print original ("anything") when original is only made up of alphabetical characters'
Any numbers and the console returns 'empty', which is what I'm looking for right ?
- What is the console supposed to look like when the code runs correctly when typing in a legitimate entry ?
When an entry goes through correctly, i.e. a couple of numbers returns 'empty' & 'none' i get the congratulations message and i could go on to the next exercise. But this code has problems soon as its tested.
any help with some explanation would be greatly appreciated
print 'Welcome to the Pig Latin Translator!' # Start coding here! raw_input("Enter a word:") original = raw_input() empty_string = "" x = "J123" if len(original) > 0 and original.isalpha(): print "word up, games gonna begin" else: print "empty"