Anonymous user
Sum of a series: Difference between revisions
→{{header|Python}}: compute the correct function
(Added Ada) |
(→{{header|Python}}: compute the correct function) |
||
Line 121:
=={{header|Python}}==
print sum(1.0 / x ** 2 for x in xrange(1, 1001))▼
▲print sum(xrange(1, 1001))
|