Skip to content

Instantly share code, notes, and snippets.

@vinnuvlsm
Created April 5, 2017 03:35
Show Gist options
  • Save vinnuvlsm/2b1a6adda2777772e03987f3cf57b7a0 to your computer and use it in GitHub Desktop.
Save vinnuvlsm/2b1a6adda2777772e03987f3cf57b7a0 to your computer and use it in GitHub Desktop.
list1 = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
len = list1.__len__()
list2 = []
for i,j in enumerate(list1):
if list1[i] < 5:
list2.append(j)
print("List with less than 5 is\n", list2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment