Python code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
27th Jan 2022, 9:51 AM
KL^ ALVIN
KL^ ALVIN - avatar
7 Answers
+ 3
Your program requires two inputs So you should enter the two inputs in separate lines Like John Smith Output will be Hello John Smith
27th Jan 2022, 10:13 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 2
Muhammad Right, thank you 🤍
27th Jan 2022, 10:28 AM
KL^ ALVIN
KL^ ALVIN - avatar
+ 1
Run this code to understand how SoloLearn handles inputs https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
27th Jan 2022, 10:39 AM
Ipang
+ 1
You're welcome bro 😊Amir L
27th Jan 2022, 10:59 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 1
I got easier solution , instead of using two input function , assign only one input and add .split() to it and and store in two different variables 👍🏼
28th Jan 2022, 6:37 PM
Dollar
Dollar - avatar
0
ravilnicki I know. But in SoloLearn you can not get two inputs! I enter the first input but I have no way for the second input.
27th Jan 2022, 10:09 AM
KL^ ALVIN
KL^ ALVIN - avatar
0
Amir L To get several inputs ​​you need to write them from a new line.
27th Jan 2022, 11:20 AM
Yulia
Yulia - avatar