Daily Python Projects
Python Code Dictations
Multiplying List Items and Finding Odd or Even - Python Code Dictation
2
0:00
-2:17

Multiplying List Items and Finding Odd or Even - Python Code Dictation

Level: Easy 🟡
2

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 = [2, 3, 4]
product = numbers[0] * numbers[1] * numbers[2]

if product % 2 == 0:
    product_status = "even"
else:
    product_status = "odd"

print(numbers)
print(product)

Discussion about this episode

User's avatar