Retired
Built-in Product Function (retired)
678fdafs2
Description:
Make your own product function
- The product function multiplies all the elements in iterable given as the first argument and returns the product.
- There will be a second argument (optional, default: 1) to specify the start element to multiply.
- When the iterable is empty, returns the start element.
For example:
product() # 1
product([1, 2, 3]) # 1 * 2 * 3
product([1, 2, 3], -1) # -1 * 1 * 2 * 3
Arrays
Fundamentals
Similar Kata:
Stats:
Created | Jul 4, 2016 |
Warriors Trained | 176 |
Total Skips | 37 |
Total Code Submissions | 575 |
Total Times Completed | 67 |
Python Completions | 67 |
Total Stars | 5 |
% of votes with a positive feedback rating | 69% of 36 |
Total "Very Satisfied" Votes | 19 |
Total "Somewhat Satisfied" Votes | 12 |
Total "Not Satisfied" Votes | 5 |
Total Rank Assessments | 37 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |