Programming
Python for loop
Sample use case with a list
1
2
3
# initialize the dictionary
for word in wordsList:
word_count[word] = 0