We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
do_algebra
We need to check for possible ZeroDivisionErrors. Maybe something like the following will be okay.
ZeroDivisionError
... try: return eval(exp) except ZeroDivisionError: assert False, "invalid inputs" # $_CONTRACT_$
Alternatively,
assert not any([operand[i-1] == 0 and operator[i] == "//" for i in range(1, len(operand))]), "invalid inputs" # $_CONTRACT_$
may also work.
The text was updated successfully, but these errors were encountered:
v0.1.9
7f0cf15
ganler
No branches or pull requests
We need to check for possible
ZeroDivisionError
s. Maybe something like the following will be okay.Alternatively,
may also work.
The text was updated successfully, but these errors were encountered: