list_1 = [1,35,12,24,31,51,70,100]
def count(numbers):
total = 0
for n in numbers:
while n < 20:
total += 1
return total
I want to print the numbers less than 20 but I am not getting any output. I also tried using if statement but it didn't work.