Esempio n. 1
0
def thankyou_procedure():
    donor_name = set_donor_name()
    if donor_name.lower() == 'list':
        print(list_donors())
    elif donor_name in list_donors():
        send_thankyou(donor_name)
    else:
        add_donor(donor_name)
Esempio n. 2
0
def thankyou_procedure():
    donor_name = set_donor_name()
    if donor_name.lower() == 'list':
        all_donors = mr.list_donors()
        print(all_donors)
    elif donor_name in mr.all_donors():
        thx = mr.send_thankyou(donor_name)
        print(thx)
    else:
        mr.add_donor(Donor(donor_name, []))