gowtham900

Untitled

Sep 19th, 2021
624
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. t=int(input())
  2. while(t!=0):
  3.     n=int(input())
  4.     arr=[int(_) for _ in input().split()]
  5.     summer=0
  6.     for i in range(n):
  7.         summer+=arr[i]
  8.     print(summer)
  9.     t=t-1
RAW Paste Data