Skip to content

Instantly share code, notes, and snippets.

@rostyq
Last active July 27, 2017 15:55
Show Gist options
  • Save rostyq/3c3ad7f2c002aebdbf12437339ef8ef3 to your computer and use it in GitHub Desktop.
Save rostyq/3c3ad7f2c002aebdbf12437339ef8ef3 to your computer and use it in GitHub Desktop.
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
num = input('Input a number: ')
num = int(num)
b = [i for i in a if i < num]
print(b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment