Skip to content

Instantly share code, notes, and snippets.

@poros
Created October 4, 2015 13:36
Show Gist options
  • Save poros/da93b7287ab89cefc057 to your computer and use it in GitHub Desktop.
Save poros/da93b7287ab89cefc057 to your computer and use it in GitHub Desktop.
Function testing a condition
if x % 2 == 0:
return True
return False
bool(x % 2 == 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment