Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Sum accepts a list (or other iterable) as an argument. monom is an element of list.

You could write sum([monom[i] for i in range(5)]) to get what you mean...