a=[1,2,3,4,5]sum=0for i in range(len(a)): sum=sum+a[i]print('goukei',sum)print('heikin',sum/len(a))# your code goes here
Standard input is empty
('goukei', 15) ('heikin', 3)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!