sample solution
n = int(input("enter n: ")) the_sum = 0 for i in range(n+1): the_sum = the_sum + i print(f"the sum of the first {n:d} positive integers is: {the_sum:d}")