Skip to content

Commit 4cda021

Browse files
committed
Updating mailroom.py.
1 parent 0c47ac2 commit 4cda021

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎students/brian_warn/session03/mailroom.py‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
'Mark Zuckerberg': [2000000]
1212
}
1313

14-
# for key, value in donor_gift_dict.iteritems():
15-
# print("For ", key, "length ", len(value))
16-
1714

1815
def main():
1916
# thank_you -->
@@ -42,7 +39,7 @@ def thank_you(donor_gifts):
4239
else:
4340
break
4441

45-
# Enter the donation amount
42+
# Enter the donation amount. Input taken as an integer-only value
4643
while(True):
4744
donation_amount = int(input("Please enter the donation amount (Enter 'menu' to return to the original menu.) --> "))
4845
if donation_amount == 'menu':
@@ -56,6 +53,7 @@ def thank_you(donor_gifts):
5653

5754
# Store the donation and send a thank you
5855
donor_gifts[ty_name].append(donation_amount)
56+
# Generate thank you note. Format placeholders don't have any padding in order to produce a clean message.
5957
print("\nDear {d:}, \nThank you for your generous donation of ${t:<,.2f}.".format(d=ty_name, t=donation_amount))
6058

6159

0 commit comments

Comments
 (0)