Pyg latin Pop quiz - isalpha


So this is my code below. When I run the code, and enter a word with numbers it still prints.. so it seems like I'm doing something wrong with the isalpha command, could someone help? I'm kinda stuck here

print 'Welcome to the Pig Latin Translator!'

original = raw_input("Enter a word:")
print original

if len(original) > 0 and original.isalpha():
** print 'original'**

elif not original.isalpha():
** print "empty"**

** print "empty"**

nevermind I just noticed that I had "print original" in line 4 and I took out the elif command. So now it runs fine


Not asked for, nor expected. Remove that branch.

should be above print original.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.