Spaces:
Sleeping
Sleeping
Update app.py
Browse filesextract computation
17 unmodified lines1819202122232425262728293031323317 unmodified lines"""match arg3:case "*":return f"The result is: '{arg1 * arg2}'"case "/":if(arg2!=0):return f"The result is: '{arg1 / arg2}'"else:return f"Error: Division by zero not possible"case "+":return f"The result is: '{arg1 + arg2}'"case "-":return f"The result is: '{arg1 - arg2}'"case _:return f"Error: '{arg3}' is an unsupported operation, Supported operations are +,-,*,/"17 unmodified lines181920212223242526272829303132333435363717 unmodified lines"""match arg3:case "*":result = arg1 * arg2return f"The result is: '{result}'"case "/":if(arg2!=0):result = arg1 / arg2return f"The result is: '{result}'"else:return f"Error: Division by zero not possible"case "+":result = arg1 + arg2return f"The result is: '{result}'"case "-":result = arg1 - arg2return f"The result is: '{result}'"case _:return f"Error: '{arg3}' is an unsupported operation, Supported operations are +,-,*,/"
app.py+8-4