1.
The following program segment should iterate through the list
terms
and then add each item to the list vocab
if it is not already in vocab
. If the word is already in vocab
, then the program should add 1 to the variable duplicates
.Arrange and indent the blocks correctly. You will not use them all.