Program to find the sum of n natural numbers

def sum_natural(n):
    return n * (n + 1) // 2 if n > 0 else "Enter a positive number"

n = int(input("Enter a positive number: "))
print(f"Sum of first {n} natural numbers: {sum_natural(n)}")