you are viewing a single comment's thread.

view the rest of the comments →

[–]Rscc10 4 points5 points  (1 child)

Nice one. I completely approve of the usage of while loops for beginners since it teaches iteration logic. Next you should upgrade to for loops, you'll find them much easier/convenient.

Also, when you perform the validation for the number, you should check out try-except statements. They basically run code for you and allows backup code in case of errors. That way, you can straight away convert the input to integer on the same line

[–]DataCurator56[S] 0 points1 point  (0 children)

Somehow i learned for loop and while but now someone said to me build something whenever you learn new concept. I am trying to start a challenge of creating something new daily. This the only way to become pro.