Hi so i was writing a code in the beginner section while my code was working perfectly in custom windows and inputs i was getting NZec and EOF. code was perfect but when i ran the code like this
N,M,K=input().split()
N,M,K=int(N),int(M),int(K)
certi=0
for i in range(int(N)):
Studentdata=input().split( )
Studentdata=[int(i) for i in Studentdata]
if Studentdata[-1]>10:
certi=certi+0
elif Studentdata[-1]<=10 and (sum(Studentdata[0:K]))>=M:
certi=certi+1
print(certi)
it produced error but if i put the code in try except it worked . I want to know if there is any particular reason it happens in python.