<filename>6. Error Handling and Debugging/6.1. Send Bulk SMS.py
def get_phone_number(person):
    phone_dict = {"<NAME>":"+1 960-454-6956",
                  "<NAME>":"+1 844-833-4965",
                  "<NAME>":"+1 543-920-5729",
                  "<NAME>":"+1 556-673-6702",
                  "<NAME>":"+1 867-767-7664",
                  "<NAME>":"+1 410-570-7381",
                  "<NAME>":"+1 657-220-6601",
                  "<NAME>":"+1 940-573-6702",
                  "<NAME>":"+1 813-856-3347",
                  "<NAME>":"+1 527-324-1403",
                  "<NAME>":"+1 687-801-6781",
                  "<NAME>":"+1 208-702-5161",
                  "<NAME>":"+1 908-665-3975",
                  "<NAME>":"+1 444-970-5300"}

    return phone_dict[person]
def send_sms(number):
    # sends message #
    print("Message is successfully sent to " + number)
    return True

def send_bulk_sms(Names):
    for name_in_names in Names:
        try:
            send_sms(get_phone_number(name_in_names))
        except KeyError:
            print("Customer is not found in the phone book: "+name_in_names)


<filename>6. Error Handling and Debugging/6.1. Send Bulk SMS.py
def get_phone_number(person):
    phone_dict = {"<NAME>":"+1 960-454-6956",
                  "<NAME>":"+1 844-833-4965",
                  "<NAME>":"+1 543-920-5729",
                  "<NAME>":"+1 556-673-6702",
                  "<NAME>":"+1 867-767-7664",
                  "<NAME>":"+1 410-570-7381",
                  "<NAME>":"+1 657-220-6601",
                  "<NAME>":"+1 940-573-6702",
                  "<NAME>":"+1 813-856-3347",
                  "<NAME>":"+1 527-324-1403",
                  "<NAME>":"+1 687-801-6781",
                  "<NAME>":"+1 208-702-5161",
                  "<NAME>":"+1 908-665-3975",
                  "<NAME>":"+1 444-970-5300"}

    return phone_dict[person]
def send_sms(number):
    # sends message #
    print("Message is successfully sent to " + number)
    return True

def send_bulk_sms(Names):
    for name_in_names in Names:
        try:
            send_sms(get_phone_number(name_in_names))
        except KeyError:
            print("Customer is not found in the phone book: "+name_in_names)


# sends message #