Gab-Chung commited on
Commit
5e9eccf
·
verified ·
1 Parent(s): 3a2f414

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -45,7 +45,7 @@ def convert_currency(amount:float, from_currency:str, to_currency:str) -> float:
45
  rate = c.get_rate(from_currency.upper(), to_currency.upper())
46
  # Perform the conversion
47
  converted_amount = amount * rate
48
- return f"{amount} {from_currency} is currently equal to {converted_amount} {to_currency}
49
 
50
  except RatesNotAvailableError:
51
  return f"Error: Conversionrate not available for {from_currency} to {to_currency}."
 
45
  rate = c.get_rate(from_currency.upper(), to_currency.upper())
46
  # Perform the conversion
47
  converted_amount = amount * rate
48
+ return f"{amount} {from_currency} is currently equal to {converted_amount} {to_currency}"
49
 
50
  except RatesNotAvailableError:
51
  return f"Error: Conversionrate not available for {from_currency} to {to_currency}."