Skip to content

Instantly share code, notes, and snippets.

@cjshaw1976
Created June 5, 2016 16:15
Show Gist options
  • Save cjshaw1976/174b7a02ec0164692e6dd9ebf5ac7e6c to your computer and use it in GitHub Desktop.
Save cjshaw1976/174b7a02ec0164692e6dd9ebf5ac7e6c to your computer and use it in GitHub Desktop.
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