'''
Brian Crabtree
Program to simulate dividing two numbers inputted by the user. Used to demonstrate
basic use of error handling.
'''

#Try to take in numbers from the user and divide them
try:
    dividend = float(input("Enter a dividend: "))
    divisor = float(input("Enter a divisor: "))

    quotient = dividend / divisor

    print("The answer is %f" %quotient)

#Catch the error where a non-number is entered    
except ValueError:
    print("That's not a number!")

#Catch the error where a divide by zero is attempted
except ZeroDivisionError:
    print("You can't divide by zero!")


