-
-
Save vikychoi/4d052412f08522739ef76a3db2ec8e99 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] | |
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