def comfort_count(temperatures):
count = 0
for temp in temperatures:
if 22 <= temp <= 26:
count += 1
returtn count
print(comfort_count(may_2017))
def comfort_count(temperatures):
return sum(1 for temp in temperatures if 22 <= temp <= 26)
def comfort_count(temperatures):
return sum(22 <= temp <= 26 for temp in temperatures)