23rd Dec 2020, 7:16 PM
Malek Blr
2 Answers
+ 1
First of all we cannot see your code there. The best way is to save your code on SL Playground, test with a few inputs and see how it really works. For better overview you can build in additional print statements in different positions in the code. After your code works as requested you can test it in code coach. Otherwise this will help you if you like: https://code.sololearn.com/cOjvkbJvYPg2/?ref=app
23rd Dec 2020, 8:20 PM
JaScript
JaScript - avatar
23rd Dec 2020, 7:48 PM
Daniel Briceño
Daniel Briceño - avatar