Using the comments as a guide, fix the given python code.
num_list = [2, 7, 4, 10, 5]
            
 # TODO: replace the line below
total = 0       
for num in num_list:
    total += num

print(total)
num_list = [2, 7, 4, 10, 5]
            
# Replace the line below
total = 0       
for num in num_list:
    total += num

print(total)