Answer:
Output:
15
Step-by-step explanation:
Below is the program code for the function called sum_first_integers that takes a single positive integer parameter.
def sum_first_integers(n):
total = 0
for i in range(1,n+1):
total += i
return total
# Testing
print(sum_first_integers(5))
Output:
15