Here is the answer for the question – total_sum = 0. You’ll find the correct answer below
total_sum = 0
user_value = int(input())
while user_value > 0:
total_sum = total_sum + user_value
user_value = int(input())
print(‘Sum:’, total_sum, end=”)
The Correct Answer is
Sum: 9
Reason Explained
Sum: 9 is correct for total_sum = 0