user
Task: Create a script which can calculate the total sum of a set of numbers.

{10, 20, 30, 40}

Answer:
assistant
sum = 100 
 
# Calculate the total sum
 
total = 0
 
for x in [10, 20, 30, 40]:
    total += x
 
print(total)