This function currently takes a start and stop argument and…
This function currently takes a start and stop argument and uses a for loop to find the sum of all the numbers between them (inclusive). Change the for loop to a while loop while still using the same parameters. def sumFunc(start, stop): sum = 0 for num in range(start, stop + 1): sum = sum + num return sumprint(sumFunc(1,10))
Read Details