0

What's wrong in this code?

name = input("what is your name ? ") favourite_color = input("what is your favourite_color ? ") print (name + " likes " + favourite_color)

12th Jun 2020, 10:44 AM
Mahi Chowdhury
Mahi Chowdhury - avatar
7 Respostas
+ 3
Nothing wrong. Give all your input at once in the playground because it is not interactive. Eg- Mahi Red
12th Jun 2020, 10:48 AM
Avinesh
Avinesh - avatar
+ 3
Example.
12th Jun 2020, 10:56 AM
Avinesh
Avinesh - avatar
+ 2
The output is not pretty, but no error is showing. Avinesh has probably resolved your problem concerning Sololearn requirement that all inputs are entered before SUBMIT
12th Jun 2020, 10:51 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
What is Eg??
12th Jun 2020, 10:55 AM
Mahi Chowdhury
Mahi Chowdhury - avatar
+ 1
Thanks!! it worked . That means I have to give the inputs at once
12th Jun 2020, 11:01 AM
Mahi Chowdhury
Mahi Chowdhury - avatar
0
Eg = Example
12th Jun 2020, 10:56 AM
Rik Wittkopp
Rik Wittkopp - avatar
0
There is nothing wrong in it
12th Jun 2020, 12:34 PM
Arnab Sarkar
Arnab Sarkar - avatar