In an Anaxi game interface, a component needs to calculate the total value of several displayed scores. Write a function that returns the sum of every number in an input array.
Implement sum_numbers(nums), where nums is a list of integers. Return one integer equal to the sum of all elements. If nums is empty, return 0. The input list must not be modified.
def sum_numbers(nums):