Multiply values in a list | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Multiply values in a list

Is there a function to multiply the values in a list? example: if I've a list [1, 2, 3, 4] and I want to multiply that value like 1 x 2 x 3 x 4. Is there a finction that help me with that like sort or something... Hope I explain myself :)

30th May 2022, 4:08 AM
AR-code
AR-code - avatar
2 Answers
+ 3
AR-code Or you could create your own function https://code.sololearn.com/cuK2PVOEGWJp/?ref=app
30th May 2022, 5:14 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Thank you very much for your help guys UwU
30th May 2022, 5:55 PM
AR-code
AR-code - avatar