| 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...
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.