Skip to main content
Split a paragraph into lowercase words, count each one in a dictionary, and print every word with its count using items(). Open Lab 21 in the IP Lab Portal

What you will practice

  • Split text into words
  • Count with a dictionary
  • Print the results with items()

Before you start

Time

20 minutes

Where

IP Lab Portal

Module

Module 8: Dictionaries

  • In the IP Lab Portal, open Lab 21 - Word counter.
  • In class, this lab comes right after the Lesson 4 recap slide in Module 8 core material.