I have the question where i need to find the sum of elements in the given numArray for .
But i am unable to get the desired output i want.
numArray = map(int, input().split())
sum_integer = 0
#write your logic to add these 4 numbers here
print(sum_integer) # Print the sum
My solution for that is
for i in range(len(numArray):
sum_integer=sum_integer+numArray[i]
What is wrong with my solution? And i cannot change the way the input is taken.