24.2k views
24 votes
Coding final. The code needs to be in python. See picture for information.​

Coding final. The code needs to be in python. See picture for information.​-example-1
User Quosoo
by
4.5k points

1 Answer

8 votes

Answer:

Step-by-step explanation:

def running_sum():

num = int(input("Enter a number: "))

limit = int(input("Enter a limit: "))

sum = num

while sum < limit or sum == limit:

number = int(input("Enter another number: ")

sum+=num

if sum==limit:

print(sum)

User Gleb Tarasov
by
4.7k points