I am new to codechef, i was trying atm problem of begineer section, the code is running correctly in my laptop but is giving runtime error(Nzec) in online ide. I need to know what is the problem in my code.
Here is the code:
wdraw=0.50
while True:
a=input('enter the initial bank balance')
try:
a=float(a)
except:
print('entered value is not of correct type')
continue
b=input('enter the amount of money to withdraw')
try:
b=int(b)
except:
print('entered value is not of correct type')
continue
if b%5==0:
if b<a:
a=a-b-wdraw
print('transaction complete')
print('Currrent balance',a)
break
else:
print('Not enough balance')
print('Current balance',a)
else:
print('entered value is not a multiple of 5')