When i type in a word with non alphabetical characters, it still prints it. The original.isalpha(): is meant to stop it from doing that. I'm not too sure what i'm doing wrong 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 else: print "empty"