Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Use this:

return sum(N(d,i) for i in range(1,n))

Your syntax is for symbolic sums only.

Use this:

return sum(N(d,i) for i in range(1,n))

range(1,n))

Your syntax is for symbolic sums only.

Use this:

return sum(N(d,i) for i in range(1,n))

Your syntax is for symbolic sums only.only. And remove your first line.