Last active
May 7, 2016 07:25
-
-
Save rjshekar90/74d303b76c1204e083454d3610391ff0 to your computer and use it in GitHub Desktop.
List Less Than Ten
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
# -*- coding: utf-8 -*- | |
# List Less Than Ten | |
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] | |
x = [] | |
choice = int(raw_input("Enter a number between 0 and 90 >>")) | |
for element in a: | |
if element < choice: | |
x.append(element) | |
print x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment