From 51afb793d67d815494a84ea8f5665201f9de5986 Mon Sep 17 00:00:00 2001 From: Pere Date: Sat, 31 May 2025 21:46:19 +0200 Subject: [PATCH] Update 10_currency.py With int() , you can not introduce decimals , and the program fail If you do it . So with float It do not explote :) --- 2-variables/10_currency.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/2-variables/10_currency.py b/2-variables/10_currency.py index bb949a1..e8ad901 100644 --- a/2-variables/10_currency.py +++ b/2-variables/10_currency.py @@ -1,9 +1,9 @@ # 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? ')) +pesos = float(input('What do you have left in pesos? ')) +soles = float(input('What do you have left in soles? ')) +reais = float(input('What do you have left in reais? ')) total = pesos * 0.00025 + soles * 0.28 + reais * 0.21