Do you want to know the information regarding “python multiply list”. If yes, you’re in the correct article.
python multiply list
a_list = [1, 2, 3] a_list = [item * 2 for item in a_list] print(a_list) OUTPUT [2, 4, 6]
a_list = [1, 2, 3] multiplied_list = [element * 2 for element in a_list] # [2, 4, 6]
import numpy as np list1 = [1,2,3,4,5] result = np.prod(list1) print(result) >>>120
I hope this tutorial helps you to know about “python multiply list”. If you have any questions regarding this article please let us know via the comment section. Share this article with your friends & family via social networks.