input: Write a python function to convert currency using a given rate.
  assert currency_converter(10, 0.86) == 8.6
  assert currency_converter(10, 1.16) == 11.6
  assert currency_converter(50, 0.75) == 37.5
output: def currency_converter(amount, rate):
      return amount * rate