Menu
Coddy logo textTech

Recap - Product List

Part of the Fundamentals section of Coddy's Python journey — lesson 57 of 77.

challenge icon

Challenge

Easy

Write a function named prod which gets a list of numbers as argument and returns the product of all the numbers in the list.

Reminder, product is the multiplication of all the numbers, for [1, 2, 3], return 6 = 1 * 2 * 3.

Try it yourself

def prod(lst):
    # Write code here

All lessons in Fundamentals