Skip to content

Instantly share code, notes, and snippets.

@cstrouse
Created June 9, 2016 05:29
Show Gist options
  • Select an option

  • Save cstrouse/93060e36d82c5aadd61dad1612db46b7 to your computer and use it in GitHub Desktop.

Select an option

Save cstrouse/93060e36d82c5aadd61dad1612db46b7 to your computer and use it in GitHub Desktop.
Fast trick I just discovered for finding odd numbers
# odds number 1 through 99 inclusive
[x for x in range(1,100) if x &0x1 == True]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment