+ 2

Can someone please explain why this simple calc code doesnt work on playground? It works well on IDLE.

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

10th Mar 2018, 6:13 AM
Sam K Sharma
Sam K Sharma - avatar
4 odpowiedzi
+ 5
It works very well! ...you may be missing some steps here! just make sure you separated each input with "ENTER" key on keyboard. that's the rule of the sololearn code playground eg: 1 9 6 ...output will be 15.0
10th Mar 2018, 6:29 AM
Nomeh Uchenna Gabriel
Nomeh Uchenna Gabriel - avatar
+ 5
Yeah ! Nothing wrong. Sololearn Code Playground takes all the inputs at a time . So you have to provide different separated by a new line.
10th Mar 2018, 6:39 AM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 4
It works, you just have to enter the values seperated by enter. To add 5 and 7 type on request 1 5 7 Submit
10th Mar 2018, 6:30 AM
Louis
Louis - avatar
+ 2
thanks guys for the quick answer. really appreciate and I'll try that way.
10th Mar 2018, 9:32 AM
Sam K Sharma
Sam K Sharma - avatar