Answer:
# Initialize the sum to 0
sum = 0
# Start an infinite loop
while True:
# Ask the user for a number
num = input("Enter a number (or 'stop' to finish): ")
# If the user enters "stop", break out of the loop
if num == "stop":
break
# Otherwise, add the number to the sum
sum += int(num)
# Print the final sum
print("The sum of the numbers you entered is:", sum)