question archive Add exception handling code to prevent the script from crashing when the user inputs a string instead of a number
Subject:Computer SciencePrice: Bought3
Add exception handling code to prevent the script from crashing when the user inputs a string instead of a number. (You can let the script end after a single input or ask the user to input a valid number again) |
Provide a screenshot below showing your script and showing the output if a user enters a mark of 80.