{"id":33,"date":"2018-06-04T05:09:16","date_gmt":"2018-06-03T23:39:16","guid":{"rendered":"https:\/\/pynative.com\/?p=33"},"modified":"2021-06-16T18:43:27","modified_gmt":"2021-06-16T13:13:27","slug":"python-program-to-calculate-sum-and-average-of-numbers","status":"publish","type":"post","link":"https:\/\/pynative.com\/python-program-to-calculate-sum-and-average-of-numbers\/","title":{"rendered":"Python program to calculate sum and average of first n natural numbers"},"content":{"rendered":"\n

In this lesson, you will learn how to calculate the sum and average of the first n natural numbers<\/a> in Python.<\/p>\n\n\n\n

Also, you will get to know how to calculate the addition and average of user-entered numbers, list of numbers. And the use of built-in function sum()<\/code>.<\/p>\n\n\n\n

This tutorials is part of Python Basics<\/a>.<\/p>\n\n\n\n

Table of contents<\/h2>