0

Hey i need help with my code

name= raw_input("What is your name?") food= raw_input("What's your favourite food?") print "Wow, so your name is %s, and your favourite food is %s." %(name,food)

2nd Nov 2017, 9:17 PM
Ineza Bonté
Ineza Bonté - avatar
2 Answers
+ 5
name= input("What is your name?") food= input("What's your favourite food?") print("Wow, so your name is %s, and your favourite food is %s." %(name,food)) Use input instead of raw_input and put brackets around your print :)
2nd Nov 2017, 10:01 PM
Max_N
Max_N - avatar
+ 2
You're using Python 2. You should be learning Python 3.
2nd Nov 2017, 11:56 PM
LunarCoffee
LunarCoffee - avatar