+ 1
Please i don't understand What is wrong with My code?
6 Answers
+ 6
Etinosa Ibude ,
your code is absolutely correct, but as Mustafa A already mentioned, you can not work in an interactive mode here in sololearn. try to run your code in an online editor or in a regular ide to see how it is working.
+ 2
You don't have an interactive shell in SoloLearn. You can take a couple of inputs by entering them in separate lines when the pop-up shows up.
+ 2
You can't take any number of inputs like you are doing right now. That's why it's failing to read the input.
+ 2
For instance the following input in the pop-up will work
1
2
3
yes
But it will crash at the next round as it can't read more inputs.
+ 1
Your code is correct.
You have to check it whether regular IDE or online editors.
If you want to see your results on sololearn you must add all of your inputs with seprate lines for each inputs.
0
Try to run this code in another compiler in sololearn this will not work