3. Input!

I have been stuck on this for over 8 hours, please help this is what I have

print ‘Welcome to the Pig Latin Translator!’

Start coding here!

variable_name = raw_input(‘What’s your favorite food?’)
def original():

print 'Welcome to the Pig Latin Translator!'

# Start coding here!
raw_input("Enter a word:")
original = 'raw_input()'

Raw input is stored in the variable “original” which is saved for later use. No need to define it.


@overeptic Next time instead of just giving people the correct code, please try and help them by explaining their problems, thanks.

1 Like

Whoops. I’ll edit that as quickly as i can. Sorry :stuck_out_tongue:

It’s fine, it’s just that I don’t think that it’s the best way for people to learn, that’s all.

Yeah, I guess.

1 Like

but, sometimes, giving people the correct code really is the only way to teach them…

Without explanation, it won’t help much at all.

not directly but it will make them ask “okay lets analyse it why was that right” it is what i do and sometimes it may just be a little mistake they are doing

1 Like

I type this in and it is right but it won’t load

1 Like

I have input many different answers from the forum but keep getting the same error message on line 4 at time of input:

>     Traceback (most recent call last):
>     File "python", line 4, in <module>
>     TypeError: 'str' object is not callable

Any thoughts?

1 Like

Im also getting the invalid string, any assistance?

I tried the same code yesterday and it worked. Maybe try restarting browser? Cheers