Skip to content

Latest commit

 

History

History

product

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Product

Instructions

Given an array of integers implement a function which returns the product of all numbers in the array.

Challenge | Solution

Examples

product([1, 2]) # 2

product([1, 2, 4]) # 8

product([2, 4, 10]) # 80

Hints

Hint 1 You can use recursion