Program to find sum of first n natural numbers | Returns sum of first n natural numbers ; Driver code
def findSum ( n ) : NEW_LINE INDENT return n * ( n + 1 ) / 2 NEW_LINE DEDENT n = 5 NEW_LINE print findSum ( n ) NEW_LINE