Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Update grocer.py #4

Merged
merged 1 commit into from
Oct 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions py/grocer.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#prices of items
prices = {'apple': 10, 'tomato':5 'banana': 1, 'potato':5}
prices = {'apple': 10, 'tomato':5, 'banana': 1, 'potato':5}

#items purchased
my_purchase = {
Expand All @@ -14,4 +14,4 @@
grocery_bill += my_purchase[purchase] * prices[purchase]

#total bill
print ('I owe the grocer %.2f rupees' % grocery_bill)
print ('I owe the grocer %.2f rupees' % grocery_bill)