I'm trying to get python to count unique words and skip over the variable JUMBO and then store it in a dictionary.
book_string = 'you cant can do it it it'
JUMBO = 'cant'
book_string = book_string.split(' ')
word_count = {}
for w in book_string:
if w == JUMBO:
continue
if w != '':
word_count[w] = 0
for w in book_string:
if w != '':
word_count[w] += 1
print(word_count)
# output: {'you': 1, 'cant': 1, 'can': 1, 'do': 1, 'it': 3}