Untitled
unknown
plain_text
a year ago
347 B
134
Indexable
temp = 0 temp1 = 0 a = [[34,38,50,44,50], [42,36,40,43,34], [24,31,46,40,35], [43,47,35,31,36], [37,28,20,36,50]] for row in range(len(a)): for col in range(len(a[row])): temp = temp+ a[row][col] temp1 = temp1+1 print("Sum of all values: "+str(temp)) print("Average of all values: "+ str(temp//temp1))
Editor is loading...
Leave a Comment