1 | initial version |
Use this:
return sum(N(d,i) for i in range(1,n))
Your syntax is for symbolic sums only.
2 | No.2 Revision |
Use this:
return sum(N(d,i) for i in Your syntax is for symbolic sums only.
3 | No.3 Revision |
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.