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

8th Aug 2022, 10:29 PM
Sabeen Fatima
3 Respuestas
+ 2
All inputs in Sololearn must be entered before you run your code. I assume you are getting EOFerror
9th Aug 2022, 1:23 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 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)
8th Aug 2022, 11:50 PM
Sabeen Fatima
0
Yes exactly
9th Aug 2022, 1:28 AM
Sabeen Fatima