I made a list comprehension to only add numbers less than or equal to 5 to b, but when I run my program it outputs Boolean's instead of integers.
How do I change them to integers.
a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
b = [i <= 5 for i in a]
print b
[True, True, True, True, True, False, False, False, False, False, False]