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))
Are there any code examples left?
New code examples in category Python
size=int(input("ENTER ARRAY SIZE"))arr=[]for i in range(size): element=int(input()) arr.append(element)print("SUM OF ARRAY : ",sum(arr))