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")


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.


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: ")


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