Skip to content

Instantly share code, notes, and snippets.

@rjshekar90
Last active May 7, 2016 07:25
Show Gist options
  • Save rjshekar90/74d303b76c1204e083454d3610391ff0 to your computer and use it in GitHub Desktop.
Save rjshekar90/74d303b76c1204e083454d3610391ff0 to your computer and use it in GitHub Desktop.
List Less Than Ten
# -*- 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