Exercise: Use for-loop to get sum of numbers
Create a for-loop that iterates over the tuple numbers. The loop should calculate the sum of all elements within numbers. Hint: Update total_sum in each iteration of the loop.
numbers = (5,2,3)
total_sum = 0
# add code here...
for
print(total_sum)
# expected output: 10
Python
Setting up Python environment...
Output