Check yourself


#1

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

I am getting the response I want from the response window, but the Code Academy error box keeps saying my word was greater than 0 but it did not print "original," but I can clearly see original being printed in the response window.


print 'Welcome to the Pig Latin Translator!'


original = raw_input("Enter a word")
if len(original) > 0:
        print "original"
else:
        print"Empty"


#2

Not in quotes. Print the variable so you can see the user input.

That should be lowercase.


#3

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