Currently, the code assumes the amount input is always a valid integer. Implement input validation to ensure that users cannot enter negative numbers, non-integer values, or empty fields for the amount.
Suggestion: Use try-except blocks to catch invalid input and display an appropriate error message.
Currently, the code assumes the amount input is always a valid integer. Implement input validation to ensure that users cannot enter negative numbers, non-integer values, or empty fields for the amount.
Suggestion: Use try-except blocks to catch invalid input and display an appropriate error message.