Input!


#1



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


Welcome to the Pig Latin Translator!
Traceback (most recent call last):
File "python", line 4, in
TypeError: 'str' object is not callable


I dont know what i'm doing wrong. but please help.


Replace this line with your code. 
print 'Welcome to the Pig Latin Translator!'

# Start coding here!
variable_name = raw_input("enter a word")
variable = "orginal"


#2

do you run this code in the exercise? I can't get the interpreter error you get

instead, i get: did you create a variable called original? currently you store the result of prompting in variable named variable_name, this should be original


#3

yes, I ran the code in the exercise. I keep the getting the same error message.


#4

try a different browser, and fix what i suggest:


#5

I reset my browser and figured out what I was doing wrong. At first, I thought that I had to create a variable and name it "Original". but then I realized that typing in "original = raw_input would create the variable.

Thank you for your prompt response.


#6

yes, the variable should be named original which you achieve with:

original = raw_input

as you figured out :slight_smile:


#7

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