Solved | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Solved

I'm running a code right from the tutorial in the playground, the program should ask me for 2 inputs, why am I only seeing 1 when it's ran

7th Apr 2017, 11:56 PM
Adam Dewitt
Adam Dewitt - avatar
2 Answers
+ 18
Online compilers require that you give all of your inputs in that one prompt box. The code will read them one line at a time. So for two inputs, type something like this: 25 57
8th Apr 2017, 12:01 AM
Tamra
Tamra - avatar
+ 12
I.e. Split seperate inputs into seperate lines.
8th Apr 2017, 12:26 AM
Hatsy Rei
Hatsy Rei - avatar