Help me improve the output? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help me improve the output?

Suggest some tips. https://code.sololearn.com/c0iWIuByT3VN/?ref=app

7th Sep 2019, 10:52 AM
Piyush Srivastava
Piyush Srivastava - avatar
2 Answers
+ 2
You print the result in the loop, so it gets (partially) printed each time. Just move that line below the braces of the loop.
7th Sep 2019, 11:51 AM
HonFu
HonFu - avatar
+ 1
Thanks
7th Sep 2019, 12:18 PM
Piyush Srivastava
Piyush Srivastava - avatar