@kelvinchanwh kindly add comments in your function part (especially about loop) to make the code better understandable.
Since this repo is meant to be used by both beginners as well as experienced coders, it'd be better if we maintain the quality of the code from the beginning itself.
@Dude-901 Thanks for the comment. Have added some comments regarding the while loop. Do let me know if there are any more clarifications I should make in regards to the code
@kelvinchanwh kindly add comments in your function part (especially about loop) to make the code better understandable. Since this repo is meant to be used by both beginners as well as experienced coders, it'd be better if we maintain the quality of the code from the beginning itself.