I am simultaneously proud and ashamed of my solution to Exercise 7: Intermediate def count11(seq): return sum([x == (1, 1) for x in zip(seq[:len(seq)-1], seq[1:])]) print(count11([0, 0, 1, 1, 1, 0])) # this should print 2