Python NZEC Runtime error, how to solve it?

Hi,
I’m new to Codechef, my code for the Beginner’s ATM problem in python 3.6:

float (balance = 120.00)
withdraw = raw_input().split(" ")
withdraw = float(withdraw)

if (withdraw%5 and withdraw<balance):
print(balance - (withdraw+0.50))
if (withdraw%5 != 0 and withdraw<balance):
print(balance)
else:
print(balance)

can someone please help me to identify the mistake in this code?

Hi @swathi183,

Check out my answer in this thread: Python NZEC Runtime error CodeChef IDE

If you still have any doubts, feel free to ask them.

Cheers
Aadarsh…

Hi @aadarsh_ram,

my code ran! thank you so much!