Does anyone if this app allows you to input more than once when running code | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Does anyone if this app allows you to input more than once when running code

I ran a code and it requires the user to input a choice... 1 for yes 2 for no. Then asked if you would like to do it again. But it doesn't ask it just automatically selects the same. I was wondering if it's the app or me haha

4th May 2020, 10:56 PM
Steve
3 Answers
+ 2
Sololearn is a bit special in the way it runs code. Take a look at this 'video', it explains it pretty well... https://code.sololearn.com/WhiNb9BkJUVC/?ref=app
4th May 2020, 11:11 PM
HonFu
HonFu - avatar
+ 2
Oh I see. That explains it. Thanks for your help. I'll give it a go
4th May 2020, 11:18 PM
Steve
+ 2
So for that reasons, while loops are tricky. But if you know the number of inputs, you can enter them line by line before you run the code.
4th May 2020, 11:20 PM
HonFu
HonFu - avatar