Why doesn't it work? where is the problem from? He only asks a question once and does not ask a second time, why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why doesn't it work? where is the problem from? He only asks a question once and does not ask a second time, why?

https://code.sololearn.com/cY70X00iX7gW/?ref=app

14th Jun 2023, 11:29 AM
Amirhossein
Amirhossein - avatar
3 Answers
+ 5
Code is working properly. You have to give 2 inputs on 2 different lines.
14th Jun 2023, 12:10 PM
D Shah 🎯⏳️
D Shah 🎯⏳️ - avatar
+ 5
You need to provide all necessary input upfront, when the input dialog shows up. Run this code to understand how input works in SoloLearn https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
14th Jun 2023, 12:20 PM
Ipang
0
Sololeaen, unfortunately, doesn't support multiple input done in a separate way, so you have to add your first input, then go to a new line and enter the second input. If you try your code in some online compilers, it will work, or if you run your code on Pycharm, then it should work.
15th Jun 2023, 10:28 PM
Danish Zubair
Danish Zubair - avatar