human
Program to find sum of first n natural numbers | Returns sum of first n natural numbers.
Driver code"
Solution in Python:
assistant
#Here is code to program to find sum of first n natural numbers and the other steps required.
 def findSum ( n ) :
	return n * ( n + 1 ) / 2
n = 5
print findSum ( n )