Sum of Natural Numbers in Python

Write a Program in Python to find Sum of Natural Numbers.

Output

Enter a DesiredNumberber: 8
The sum is 36

Exercise

Write a Program in Python to find Sum of odd Natural Numbers.

Sum of n number of odd natural numbers C++

 

Prof.Fazal Rehman Shamil (Available for Professional Discussions)
1. Message on Facebook page for discussions,
2. Video lectures on Youtube
3. Email is only for Advertisement/business enquiries.