I've created a summation function that takes in a start number and an end number and returns a summed answer between those two points
def print_sum_equations(start_number,end_number):
mySum = 0
num = start_number
while num <= end_number:
mySum += num
num += 1
print (mySum)
print_sum_equations(3,5)
It returns 12 which is correct, however, I want my output to look like the following
3 + 4 + 5 = 12
rather than just returning the answer. Im still new to python and learning how to iterate while loops so any help is appreciated
num += 1