Created
November 15, 2017 03:09
-
-
Save pejantantangguh/d52cd1fc3d1ba40391de4c6567a2a225 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] | |
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