Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 520 Bytes

File metadata and controls

21 lines (17 loc) · 520 Bytes

Division System

This system divides 100 by a user‑given number and handles invalid input safely.

Features

  • 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)

How to use

Type any number to divide 100 by it. Invalid input or zero gives an error message. Type "stop" to exit.

Learning Purpose

Practice with:

  • exception handling
  • safe arithmetic
  • loops and input validation