Skip to content
Open
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
12 changes: 12 additions & 0 deletions projects/m1/002-bottle-deposits/python/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
value_small = 0.10
value_big = 0.25


print("How many small cans do you have?")
number_small = int(input())

print("How many big cans do you have?")
number_big = int(input())

refund = number_small*value_small + number_big*value_big
print("Your refund is: " + str(round(refund , 2)) + "$") # ALTERNATIVE print("Your refund is: " + "%.2f" % refund + "$")