First time here? Check out the FAQ!
answered 2022-10-12 01:31:51 +0100
You can just can try / and if there is an exception, do // instead - like:
try: result = x / y except ZeroDivisionError: result = x // y