Python NZEC Runtime error, how to solve it?

nzec

#1

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?


#2

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…


#3

Hi @aadarsh_ram,

my code ran! thank you so much!