Created
May 14, 2016 18:44
-
-
Save MuddyBootsCode/9501732a39c38b7f470c54baf65d6965 to your computer and use it in GitHub Desktop.
ListLessThanTen
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 = [] | |
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