You are viewing a single comment's thread. Return to all comments →
array=[] n=int(input()) for i in range(n): i=int(input()) array.append(i) sum=0 for i in range(0,len(array)): sum=sum+array[i] print(sum)
this is my code(python3) what is my mistake?it cant pass sample test cases
this is my code (python3) what is my mistake in this code?it cant pass
Seems like cookies are disabled on this browser, please enable them to open this website
Savita And Friends
You are viewing a single comment's thread. Return to all comments →
array=[] n=int(input()) for i in range(n): i=int(input()) array.append(i) sum=0 for i in range(0,len(array)): sum=sum+array[i] print(sum)
this is my code(python3) what is my mistake?it cant pass sample test cases
this is my code (python3) what is my mistake in this code?it cant pass