0
having a problem in first project of data science course?
this is the code: n, p = [int(x) for x in input().split()] x=[] for i in range(n): a =[] for j in range(p): a.append(int(input())) x.append(a) please someone guide me what to do I am totally stuck here
3 ответов
+ 2
All inputs in Sololearn must be entered before you run your code.
I assume you are getting EOFerror
+ 1
here is my latest code which works perfectly on my computer
n, p = [int(x) for x in input().split()]
x=np.empty((n,p))
for i in range(n):
a=0
for j in range(p):
a=float(input())
x[i][j]=a
m=x.mean(axis=1)
print(m)
0
Yes exactly