This system divides 100 by a user‑given number and handles invalid input safely.
- Runs until the user types "stop"
- Converts input to an integer
- Divides 100 by the given number
- Catches invalid input (ValueError)
- Catches division by zero (ZeroDivisionError)
Type any number to divide 100 by it. Invalid input or zero gives an error message. Type "stop" to exit.
Practice with:
- exception handling
- safe arithmetic
- loops and input validation