PygLatin: Test yourself some more


I have a problem with the Pyglatin:

When I type a word with only alphabetic Charakters, it won't print it out.
Actually it prints when i have numeric and alphabetic characters... Thats exactly the opposite which i want to achieve!

print 'Welcome to the Pig Latin Translator!'

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

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

Thanks for any help in advance!


you have to print the value of the variable not the variable

remember string need " " variable doesn't


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