0

Ask two questions : person's name and favorite color. Then print a message like 'Victor likes blue'

So I worked it out using Python but things aren't not going well. Am a newbie help me out. This is my code please Correct it for me. name= input('what is your name?') favourite color=input('what is your favourite color') print(name + 'likes' + favourite color)

8th Jan 2022, 8:00 PM
Agbofa Victor
Agbofa Victor - avatar
3 Antworten
+ 2
You can't name the variable "favourite color" – it needs to be one word, e.g."favorite_color"
8th Jan 2022, 8:02 PM
Lisa
Lisa - avatar
0
Ok let me try that out and see
8th Jan 2022, 8:03 PM
Agbofa Victor
Agbofa Victor - avatar
0
It works now thanks to you
8th Jan 2022, 8:03 PM
Agbofa Victor
Agbofa Victor - avatar