Skip to content

Instantly share code, notes, and snippets.

@vikychoi
Created November 5, 2017 03:53
Show Gist options
  • Save vikychoi/4d052412f08522739ef76a3db2ec8e99 to your computer and use it in GitHub Desktop.
Save vikychoi/4d052412f08522739ef76a3db2ec8e99 to your computer and use it in GitHub Desktop.
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
b=[]
c=[]
number = int(input("gimme a number"))
for k in a:
if k<5:
b.append(k)
print(b)
for k in a:
if k<number:
c.append(k)
print(c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment