input: Write a python function to create a calculator that takes a string as input and evaluates it using the eval function.
  assert calculator("3+5") == 8
  assert calculator("10-2*5") == 0
  assert calculator("10/2") == 5.0
output: def calculator(expression: str) -> float:
      return eval(expression)