Daily Python Projects
Python Code Dictations
Counting Words in a Sentence - Python Code Dictation
0:00
-1:06

Counting Words in a Sentence - Python Code Dictation

Level: Easy 🟡

What is this post about?

This is an audio code dictation to help learners memorize Python syntax. Follow these steps to complete a dictation:

  1. Open a code editor on your computer.

  2. Play the audio and type the narrated code while listening.

  3. Compare your code with the correct code below.

Correct Code

sentence = "Python is fun and easy to learn"
words = sentence.split()
word_count = len(words)
print("Word count", word_count)

Discussion about this episode

User's avatar