PygLatin: Test yourself some more


#1

I have a problem with the Pyglatin:


https://www.codecademy.com/courses/python-beginner-2W5v7/0/6?curriculum_id=4f89dab3d788890003000096


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"
    
else: 
   print "empty"

Thanks for any help in advance!


#2

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

remember string need " " variable doesn't


#3

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