Skip to content

Instantly share code, notes, and snippets.

@0x49D1
Created September 8, 2016 18:15
Show Gist options
  • Save 0x49D1/986b02c0a0845bb5a7c7eafbc5ac664b to your computer and use it in GitHub Desktop.
Save 0x49D1/986b02c0a0845bb5a7c7eafbc5ac664b to your computer and use it in GitHub Desktop.
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
print("Printing numbers less then 5 \n")
print([t for t in a if t < 5])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment