3. Input!


#1

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


#2
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.


#3

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


#4

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


#5

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


#6

Yeah, I guess.
/20chars


#7

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


#8

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


#9

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


#11

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


#12

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?
Cheers!


#13

Im also getting the invalid string, any assistance?


#14

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