The pin #7 should be inside list comprehension.