sum of ele in arr code example
Example: sum of ele in arr
size=int(input("ENTER ARRAY SIZE"))arr=[]for i in range(size): element=int(input()) arr.append(element)print("SUM OF ARRAY : ",sum(arr))
size=int(input("ENTER ARRAY SIZE"))arr=[]for i in range(size): element=int(input()) arr.append(element)print("SUM OF ARRAY : ",sum(arr))