0

Help with this code

name = raw_imput("what is your name?") age = raw_imput("what is your name?") quest = raw_imput("what is your quest?") colour = raw_imput("what is your favourite colour?") print "Ah, so your name is '%s', your quest is '%s', " \ "and your favourite color is %s." % (name, quest, color)

24th Dec 2016, 7:13 PM
code-junkie
code-junkie - avatar
3 Answers
+ 2
Python 3? Syntax errors: Drop raw_ change imput to input use parens for print drop the " before and after the continuation character (\) or just make it all one string (easier) choose 1: American or Queen's English spelling of colour/color, not both Logical errors: Wrong prompt for age age isn't used / apparently doesn't matter.
24th Dec 2016, 8:12 PM
Kirk Schafer
Kirk Schafer - avatar
+ 2
You posted another question with tags [loops] [height] [python3], corrected the age line and got similar responses. I'll bounce an update over there.
24th Dec 2016, 10:02 PM
Kirk Schafer
Kirk Schafer - avatar
0
don't understand
24th Dec 2016, 8:31 PM
code-junkie
code-junkie - avatar