# Python workshop Part 3 by Khiati Zakaria
# Example 16 (Exceptions)

import sys

while True:
     try:
         x = int(input("Please enter a number: "))
         break
     except ValueError:
         print("Oops!  That was no valid number.  Try again...")
         sys.exit(1)

print("The number was", x)

f62421a2c6df206d7eef8ed83e4ac22138999bdb
<mask token>

<mask token>
while True:
    try:
        x = int(input('Please enter a number: '))
        break
    except ValueError:
        print('Oops!  That was no valid number.  Try again...')
        sys.exit(1)
print('The number was', x)

import sys
while True:
    try:
        x = int(input('Please enter a number: '))
        break
    except ValueError:
        print('Oops!  That was no valid number.  Try again...')
        sys.exit(1)
print('The number was', x)

# Python workshop Part 3 by Khiati Zakaria
# Example 16 (Exceptions)

import sys

while True:
     try:
         x = int(input("Please enter a number: "))
         break
     except ValueError:
         print("Oops!  That was no valid number.  Try again...")
         sys.exit(1)

print("The number was", x)
