Spaces:
Sleeping
Sleeping
Update app.py
Browse files13 unmodified lines14151617181920212210 unmodified lines3334353637383913 unmodified linesA simple calculator that performs basic arithmetic operations.Args:arg1 (int): The first number.arg2 (str): The operator ('+', '-', '*','/').arg3 (int): The second number.Returns:int: The result of the calculation.10 unmodified lineselif arg2 == "/":return arg1 / arg3else:raise ValueError("Invalid operator! Only '+', '-' , '/' and '*' are allowed.")@tool13 unmodified lines14151617181920212210 unmodified lines3334353637383913 unmodified linesA simple calculator that performs basic arithmetic operations.Args:arg1 (int): The first operand, an integer number.arg2 (str): The operator, which can be '+', '-', '*' or '/'.arg3 (int): The second operand, an integer number.Returns:int: The result of the calculation.10 unmodified lineselif arg2 == "/":return arg1 / arg3else:raise ValueError("Invalid operator! Only '+', '-' , '*' and '/' are allowed.")@tool
app.py+4-4