Your question is Sum Elements in Integer Array. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Given an array of integers nums, return the sum of all elements in the array as an integer. If the array is empty, return 0.
def sum_array(nums):