What is the space complexity of splicing list in python if we are using it for calculating sum? and we are not assigning a list to anything.
a = [1,2,3,4]
sum_except_first = sum(a[1:])
What is the space complexity of splicing list in python if we are using it for calculating sum? and we are not assigning a list to anything.
a = [1,2,3,4]
sum_except_first = sum(a[1:])