I only know how to work this way I tried to understand the numpy library more without success.
l = int (input ()) opera = input () m = [] for i in range (12): m.append ([]) for i in range (12): for j in range (12): x = float (input ()) m [i] .append (x) if opera == 'S': sum = 0 for k in m [l]: sum = sum + k print (sum) if opera == 'M': med = 0 sum = 0 for k in m [l]: sum = sum + k med = sum / 12 print (med)
buran write Mar-22-2021, 04:09 PM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.