Daily Python 5 – Multiplying lists and floats

Write a Python <i>function</i> to multiply a list of numbers with each other.

input example: [2,2,2]

Output 8 (2*2*2)

Using your function, check if the result of the following list is equal to 0.3:

numbers = [10, 0.3]

Why would this return false?

Come to the lab for a detailed answer ^^

Leave a Reply

Your email address will not be published.