Mult Mult
Undefined
English
The mission is in Blocked Mode. Access to the solutions is blocked for a day or two (even after you share your own), until we'll have enough solutions for you to check. All users who've solved the mission will get the notifications about their opening.

Python has a builtin function sum. You need to do a similar function that instead of summing do multiplying.

Input: Two arguments. List of integers and initial value as integer (default 1).

Output: Int.

Example:

mult([1, 2, 3]) == 6
mult([1]) == 1
mult([10, 10, 10]) == 1000

How it’s used: (math is used everywhere)

Precondition: both given ints should be between -1000 and 1000