Python Program to calculate Sum of Series 1²+2²+3²+….+n²

Write a Python Program to calculate Sum of Series 1²+2²+3²+….+n² using For Loop and Functions with an example. The Mathematical formula for Python Sum of series 1²+2²+3²+….+n² = ( n (n+1) (2n+1)) / 6 Python Program to calculate Sum of Series 1²+2²+3²+….+n² This Python program asks the user to enter any positive integer. Next, the Python program finds … Read more