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
Update 10_currency.py
updated the currency value!
  • Loading branch information
vishnuvrj7 authored Mar 18, 2025
commit 09d07033e53143b5eeba7c9ab8349f93b43cfe8e
10 changes: 4 additions & 6 deletions 2-variables/10_currency.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Currency 💵
# Codédex

pesos = int(input('What do you have left in pesos? '))
soles = int(input('What do you have left in soles? '))
reais = int(input('What do you have left in reais? '))

total = pesos * 0.00025 + soles * 0.28 + reais * 0.21

pesos = int(input("What do you have left in pesos? "))
soles = int(input("What do you have left in soles? "))
reais = int(input("What do you have left in reais? "))
total = pesos * 0.050 + soles * 0.27 + reais * 0.18
print(total)