Hi Shani,
You’re close. Take a look at this line:
pair = LSD[x:x +1]
You want to grab the next word on the list, but x + 1 won’t do that. you have to refer to the list and get the index of the word you want. And, in order to refer to the index in a for loop, you have to use ‘enumerate’. So here’s what I got:
pairs = []
for index, word in enumerate…
[Read more]