PygLatin


#1



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

I am not able to print the statement


print 'Welcome to the Pig Latin Translator!'

# Start coding here!
original = raw_input("Enter a word : ");
if len(original) > 0:
    Print "original"
else:
    Print "empty"


#2

Kindly say what is the error in the Print statement?


#3

I got the error. P was capital in the print. Thank you!


#4

you should print the variable original (which contains the user input). You currently print a string "original"


#5

i am confused about what it is asking me to do. what did you mean by print the variable and not the string?


#6

If you have a question, go here, make a new topic, fill in the template so we have all the information needed to help you


#7

By putting "original" in quotes, you're specifying the string "original" as what you want to print, not actually printing out the value of the variable named original. Take out the quotes on either side of original in you print statement and it should work.


#8

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