Skip to content

Instantly share code, notes, and snippets.

@Razzo78
Last active January 26, 2018 09:33
Show Gist options
  • Save Razzo78/f242b897054c9205d828efef0c5e0b23 to your computer and use it in GitHub Desktop.
Save Razzo78/f242b897054c9205d828efef0c5e0b23 to your computer and use it in GitHub Desktop.
Python - Stop a number before it goes under zero
step = max(0, step - 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment