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
for i in range(int(N)):
Studentdata=[int(i) for i in Studentdata]
elif Studentdata[-1]<=10 and (sum(Studentdata[0:K]))>=M:
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.