+ 2
I'm newbie in learning python but I don't know how the code works, after coding the outputs is confusing. It only print the name
name = input("what is your name? ") favorite_color = input("what is your favorite color? ") print(name+" like "+favorite_color)
6 Answers
+ 6
You barely made any progress yet in "Python for Beginners". Try to complete the course first then see what happens.
+ 4
if you need help, please state the issue as specific as possible so we can understand what you are referring to. Link a code example and mention which aspect confuses you.
+ 3
Ipang thank you, I will do that and see what happens
+ 3
Ipang
name = input("what is your name? ")
favorite_color = input("what is your favorite color? ")
print(name+" like "+favorite_color)
The outcome is confusing, I need help.
+ 1
Manny,
In SoloLearn we only get one chance for providing inputs necessary for our program to run. Therefore for that code which require 2 inputs, when input dialog. comes up, enter the name at first line, and favourite colour at second line, for example
ipang
silver
Then hit the submit button.
Here's an intro code on how SoloLearn Playground input works
https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
0
You can use , instead of +