+ 1

Please i don't understand What is wrong with My code?

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

27th Jul 2022, 6:52 AM
Etinosa Ibude
Etinosa Ibude - avatar
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.
27th Jul 2022, 2:49 PM
Lothar
Lothar - avatar
+ 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.
27th Jul 2022, 7:20 AM
Mustafa A
Mustafa A - avatar
+ 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.
27th Jul 2022, 7:22 AM
Mustafa A
Mustafa A - avatar
+ 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.
27th Jul 2022, 7:24 AM
Mustafa A
Mustafa A - avatar
+ 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.
29th Jul 2022, 6:03 AM
Morteza Ghoddousi
Morteza Ghoddousi - avatar
0
Try to run this code in another compiler in sololearn this will not work
28th Jul 2022, 10:01 AM
Akshay
Akshay - avatar