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 | Sololearn: Learn to code for FREE!

+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/25/2022 3:51:23 PM

MAnny

6 Answers

New Answer

+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 +