Skip to content

Instantly share code, notes, and snippets.

@MuddyBootsCode
Created May 14, 2016 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MuddyBootsCode/9501732a39c38b7f470c54baf65d6965 to your computer and use it in GitHub Desktop.
Save MuddyBootsCode/9501732a39c38b7f470c54baf65d6965 to your computer and use it in GitHub Desktop.
ListLessThanTen
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
b = []
def LessThanTen(userNumber):
for i in range(len(a)):
if a[i] < userNumber:
b.append(a[i])
print (b)
userNumber = int(input('Please give me a number.\n'))
LessThanTen(userNumber)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment