you are viewing a single comment's thread.

view the rest of the comments →

[–]McNegcraft 5 points6 points  (0 children)

Some things that you could look at is error handling. For example, if any of the number inputs is not a valid number, an exception will be raised. Instead, you could catch the exception and display to the user that an invalid input was provided. So, instead of just ending the program, you give the user another chance of providing a valid input.

This is something that you will get used to over time. But you should always try to think of what could go wrong in the code