user
Instruction:Given a list of integers, create a program that will print out the sum of the values of the list.

Input: [4, 8, 10, 15]


assistant
# Program to calculate sum of list

list_of_numbers = [4, 8, 10, 15]

sum = 0

for num in list_of_numbers:
    sum += num

print("Sum of list:", sum) # Prints 37