Pop quiz! Don't know what went wrong!



The code will print the variable original either if the input is all in alphabets or not.

print 'Welcome to the Pig Latin Translator!'

# Start coding here!
original = raw_input('Enter a word:')
print original

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

#In the interpreter...

Welcome to the Pig Latin Translator!
Enter a word: rf4


Take out the first one and just leave the one inside the if statement.


Yep it works now,thanks for the help!


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