Python Reduza a função para a matriz de soma
from functools import reduce
scores = [3, 3, 80, 3, 1]
total = reduce(lambda x, y: x + y, scores)
print(total)
Marawan Mamdouh
from functools import reduce
scores = [3, 3, 80, 3, 1]
total = reduce(lambda x, y: x + y, scores)
print(total)