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.
nums
0
def sum_array(nums):
Your question is Sum Elements in Integer Array. Start with the requirements in the Question tab.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.