input: plaintext
  from typing import Any
  
  
  def eval_expr(expr: str) -> Any:
      """Evaluate the numerical expression in the given string and return the result.
      >>> eval_expr("2+2")
      4
      >>> eval_expr("3*5")
      15
      >>> eval_expr("10/2")
      5.0
      """
      return eval(expr)
  
output:     try:
          return eval(expr)
      except Exception as e:
          raise ValueError(f"Invalid expression: {expr}") from e