You are doing unnecessary multiplication
front = [3,7,5,6,9] temp = 1 for i, v in enumerate(front): temp *= front[i] front[i] = temp print( front )
1.4m articles
1.4m replys
5 comments
56.9k users