Daily Python Projects
Python Code Dictations
Adding Numbers to a List - Python Code Dictation
0:00
-1:54

Adding Numbers to a List - 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

numbers = [10, 20, 30]
numbers.append(40)
numbers.append(50)

print("Updated numbers list", numbers)

list_length = len(numbers)
print("List length", list_length)

Discussion about this episode

User's avatar