Beispiel #1
0
def send_thank_you():
    """Prompts user for a donor and donation amount, and then prints out a thank you email"""
    donor_name, donation = obtain_donation_info()
    new_donor = Donor(donor_name)
    new_donor.add_donation(donation)
    mailroom_db.add_donor(new_donor)
    txt = new_donor.generate_thank_you_note()
    print()
    print()
    print(txt)