Lesson 6 (AI): Bag of Words

A simple way to analyze text is to count how many times each word appears.

Counting

We use a loop to count.

Your Objective

Count how many times 'sun' appears.

main.py
Initializing Python Environment...