Предмет: Информатика,
автор: Аноним
Initialize the value of the product to 1(not 0 as 0 multiplied with anything returns zero). Traverse till the end of the list, multiply every number with the product. The value stored in the product at the end will give you your final answer.
Ответы
Автор ответа:
0
Ответ:
Given a list, print the value obtained after multiplying all numbers in a list.
Examples:
Input : list1 = [1, 2, 3]
Output : 6
Explanation: 1*2*3=6
Input : list1 = [3, 2, 4]
Output : 24
Похожие вопросы
Предмет: Русский язык,
автор: аня4545
Предмет: Қазақ тiлi,
автор: лкжужк
Предмет: Русский язык,
автор: Кирилл4002
Предмет: Математика,
автор: DarkLeaf