r/PythonLearning • u/Acceptable_Simple877 • Aug 18 '25
Day 2 - made this
Made this by myself (for the most part, made dumb errors here and there) after following Bro Codes Python guide for a bit.
177
Upvotes
r/PythonLearning • u/Acceptable_Simple877 • Aug 18 '25
Made this by myself (for the most part, made dumb errors here and there) after following Bro Codes Python guide for a bit.
5
u/Worried-Ad6403 Aug 18 '25
Good base. Now you can take this to the next level by adding these:
Exception handling ( what if user enter incorrect input, your program will crash. Use try except )
How do you force the user to provide a valid input always( Hint: Try except and while loop and break )
How can you keep this program running infinitely unless the user wants to exit ( Use while loop and break )
You have to start developing the habit of making your code rock solid and crash proof. Always handle the edge cases. Always ask, during execution what could cause the program to crash. Always handle those edge cases. Then with this mindset, you’ll bring quality work to future bigger projects.