Modify the following Python code to print the sum of the elements in a given list (without using the sum() function).
my_list = [1, 5, 4, -3, 10]
my_list = [1, 5, 4, -3, 10]

total = 0

for num in my_list:
 total += num

print(total) # prints 17