# File: exception.py # # This program uses exceptions to catch/handle # a division by zero error. # try: # divide total bill by number of customers # totalBill = 67 n = int(input("Number of people? ")) share = totalBill / n except ZeroDivisionError : # divide by zero exception found print("Customers ran away") else: # no exceptions found print("Share of the bill is ", share)