Created
April 5, 2017 03:35
-
-
Save vinnuvlsm/2b1a6adda2777772e03987f3cf57b7a0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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