NZEC ERROR IN PYTHON

what should i do for getting rid of this error in python

Check for divide by zero and also sometime array index out of range.

1 Like

should it accur when i do not use split funcion while takin input by raw_input()??

raw_input() take input as a string you need to split it and convert it into into the format you need.
Generally I use this for input in python:

lis = map(int, raw_input().split())

#map(int,) for converting into int you can change it any form you need .
I think this would be helpful.

should it accur when i do not use split funcion while takin input by raw_input()??

yes ofcs thanks for ur answer!!:slight_smile: