4 # This is a solution to 5 that reuses the code in 1. Whenever we can,
5 # it's good to reuse code that we already have. In a future session,
6 # we'll talk about defining functions, which is the way programmers
11 for word in scrabble.wordlist:
12 if word[0] == 'a' and len(word) >= 9:
13 matching_words.append(word)
16 # Note that I use enumerate. You can look up the enumerate function
17 # online to see what it does. We're also using a new operating "%"
18 # which is the modulo operator and which is more flexible than the
19 # "bool" based version we used before.
21 for i, word in enumerate(matching_words):