Python NZEC Runtime Error

It is happened because you probably didn’t use custom input while compile.

Thank you, this helped me.

I am getting NZEC for the following code at line 1.

inp = input()
inp = input().split(' ')
withdraw_amt, bal = float(inp[0]), float(inp[1])
if withdraw_amt%5 == 0 and withdraw_amt<bal:
    bal-=withdraw_amt+0.50
print('{:.2f}'.format(bal))

The complete error is:

Traceback (most recent call last):
File "./prog.py", line 1, in <module>
EOFError: EOF when reading a line

Are you trying to “Run” without Providing “Custom Input”?

Solution: 40881992 | CodeChef can someone tell me why i am getting nzec error in this code

Solution: 40881992 | CodeChef can someone tell me why i am getting nzec error in this code.

even I am getting a run time error though i have selected custom input with the same code