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)
8 Answers
+ 5
Drop raw_ and replace imput with input ^_^
+ 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/
+ 2
still won't work
+ 2
in python raw_input in python 2.7 is simply input in python 3
+ 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"
+ 1
don't follow
+ 1
it did not work
+ 1
still not working