Ik that this code works but it is not showing positive results with the given test case.
total =0
a = []
n = int(input("Enter no of elements: "))
for i in range(0,n):
ele1 = int(input())
a.append(ele1)
print(a)
for ele in range(0,len(a)):
total = total + a[ele]
if total > 0:
print(total)
