Skip to content

Instantly share code, notes, and snippets.

@pejantantangguh
Created November 15, 2017 03:09
Show Gist options
  • Save pejantantangguh/d52cd1fc3d1ba40391de4c6567a2a225 to your computer and use it in GitHub Desktop.
Save pejantantangguh/d52cd1fc3d1ba40391de4c6567a2a225 to your computer and use it in GitHub Desktop.
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
num = int(input("Please enter number"))
x = []
for element in a:
if element < num :
x.append(element)
print (x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment