Runtime error(NZEC) in python but AC in c

When I submitted my code in python, it shows NZEC but when I resubmit it in C with the same logic now it got accepted, I am sure that this python code can not throw any exceptions like “IndexError”,“ValueError”,… So what may be the reasons for this

Plz show your code …