Python program for the sum of first n numbers.
Topic: Python program for the sum of first n numbers.
Solution
def sum_n_num(n): return n * (n + 1)/2
List all Python Programs