What is this post about?
This is an audio code dictation to help learners memorize Python syntax. Follow these steps to complete a dictation:
Open a code editor on your computer.
Play the audio and type the narrated code while listening.
Compare your code with the correct code below.
Correct Code
sentence = "The weather is good"
words = sentence.split()
word_lengths = []
for word in words:
word_lengths.append(len(word))
print(sentence)
print(words)
print(word_lengths)
Share this post