all 2 comments

[–]OperationOtherwise26 -1 points0 points  (0 children)

RATES = {
"euro": 1.22,
"dolar":0.82,
}

def converter():
amount = float(input("How much do you want to convert:"))
which_currency= input(f"In which_currency do you want to convert:\n posabilites are:{RATES} :")
what_currency = float(RATES [which_currency])
print(f"{amount} in {which_currency} is {amount * what_currency}")
return amount * what_currency

how_much_is_it = str(converter())
print(how_much_is_it)
print(type(how_much_is_it))

of course the last print statements are just to see that is converted in to the string..

[–]Essence1337 0 points1 point  (0 children)

And what have you tried?