Pop Quiz! Need Help


What is wrong with my code?
It is printing out the numbers despite me having the x.isalpha on there
My guess would be that I messed up on what the value of x is suppose to be.

print 'Welcome to the Pig Latin Translator!'
original = raw_input("Enter a word:")
x = "J123" 
if len(original) > 0 and x.isalpha() == False:
    print original
    print "empty"


Are you sure you want x.isalpha? You are getting an output of numbers because you arent checking if original is only letters. You shouldn't need anything with x in this problem, just make sure original's length > 0 and that it is alphabetical.