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
Line 54: S_str must be a positive integer greater than 0.
Currently we only check that it can be cast to an INT.
https://docs.python.org/3/library/functions.html#int
The text was updated successfully, but these errors were encountered:
Good catch. Fixed by e910e90
Sorry, something went wrong.
That's a rather overcomplicated hack. The indentation isn't even correct.
How about?
try: S = int(S_str) if S < 1: raise ValueError('S must be a whole number') except as err: print(repr(err)) sys.exit(1)
No branches or pull requests
Line 54:
S_str must be a positive integer greater than 0.
Currently we only check that it can be cast to an INT.
https://docs.python.org/3/library/functions.html#int
The text was updated successfully, but these errors were encountered: