input: def eval_expr(expr: str) -> float:
      """Evaluate a given mathematical expression in the form of a string and return the result.
  
      >>> eval_expr("3 + 5")
      8
      >>> eval_expr("10 * 4 - 2")
      38
      """
      return eval(expr)
output:     return eval(expr)