0

Help with this code

name = 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, colour)

24th Dec 2016, 8:48 PM
code-junkie
code-junkie - avatar
8 Answers
+ 5
Drop raw_ and replace imput with input ^_^
24th Dec 2016, 8:50 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 3
try this working code name = input("what is your name?") quest = input("what is your quest?") colour = input("what is your favourite colour?") print ("Ah, so your name is %s, your quest is %s, and your favourite color is %s." % (name, quest, colour)) [EDIT] look here it working 😑 http://www.sololearn.com/app/sololearn/playground/cVIbim7gLGi0/
24th Dec 2016, 10:19 PM
Minovsky
Minovsky - avatar
+ 2
still won't work
24th Dec 2016, 8:56 PM
code-junkie
code-junkie - avatar
+ 2
in python raw_input in python 2.7 is simply input in python 3
24th Dec 2016, 8:56 PM
Minovsky
Minovsky - avatar
+ 2
You fixed a few things from the other question, this is an update. Syntax errors: raw_input is only for python 2 The corrected function is "input" (not imput) print("has parentheses in python 3") "This string "\ "is a syntax error" "This string is \ continued correctly" "This string doesn't use continuation, so just do this if you're not required to use a backslash for continuation"
24th Dec 2016, 10:07 PM
Kirk Schafer
Kirk Schafer - avatar
+ 1
don't follow
24th Dec 2016, 8:54 PM
code-junkie
code-junkie - avatar
+ 1
it did not work
24th Dec 2016, 11:04 PM
code-junkie
code-junkie - avatar
+ 1
still not working
25th Dec 2016, 10:17 AM
code-junkie
code-junkie - avatar