First time here? Check out the FAQ!
answered 2022-11-18 18:49:52 +0100
Sum accepts a list (or other iterable) as an argument. monom is an element of list.
monom
You could write sum([monom[i] for i in range(5)]) to get what you mean...
sum([monom[i] for i in range(5)])