I programmed with Python, but it doesn't look like a problem sentence.
Please tell me what's wrong with this.
Also, what is the correct program (similar to this image)?
from numpy import*
pmax = 5
mmax = 4
x=zeros(mmax,pmax), dtype=int)
ps=zeros(pmax,dtype=int)
ms=zeros(mmax,dtype=int)
for pin range (len(x[0])):
for min range (len(x)):
x[m][p]=int(input('>'.format(p,m+1))))
ms[m] = ms[m] + x[m] [p]
ps[p] = ps[p] + x[m][p]
print('Subject 0 Subject 1 Subject 2 Average')
for min range (mmax):
print('{{0:1d}student''.format(m+1), end=')
for pin range (pmax):
print('{0:6d} point' .format(x[m][p]), end='')
print('{0:6d} point'.format(ms[m]))
print('Average', end=')
for pin range (pmax):
print('{0:6d} point' .format(ps[p]), end='')
Please tell me what's wrong with this. is like this.
Even if finding mistakes is a challenge for themselves, I avoid making any specific points.
If you are a programmer, please use the above to find and correct the problem.
© 2024 OneMinuteCode. All rights reserved.