以下代码的空间复杂度是O(1)。

def sum_elements(arr):    total = 0    for num in arr:        total += num    return total
填写答案