Input!


#1

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

i am unsure whats wrong my code is as below:
print 'Welcome to the Pig Latin Translator'
raw_input("Enter a word:")
variable_name = raw_input ("original")



#2

Are you trying to store the user's input as original? If so, just equate your first raw_input to original.
Whenever you want to store something to a variable just simply do this:
For example, in your case,

Original =  raw_input("Enter a word: ")

Original is the variable you want to store your raw input in.

For the second line, remove it. Youre asking for another input the prompt "original" which makes no sense.


#3

raw_input is a python method and cannot stand alone on it's own line. You are supposed to store this,

raw_input("Enter a word: ")

in a variable named original,

original = raw_input("Enter a word: ")


#4

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