From bc9364a71b7057ccc9d1fdecac6ca7f3fb9c8835 Mon Sep 17 00:00:00 2001 From: harshitbanaula Date: Sat, 20 Sep 2025 23:48:27 +0530 Subject: [PATCH] fix: change input type from int to float in currency converter --- 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