Created
June 5, 2016 16:15
-
-
Save cjshaw1976/174b7a02ec0164692e6dd9ebf5ac7e6c to your computer and use it in GitHub Desktop.
This file contains 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
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] | |
number=int(input("Give us a number> ")) | |
x = [] | |
for element in a: | |
if element < number: | |
x.append(element) | |
print(x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment