Light Mode
Dark Mode
What I'm doing wrong?

this code works in console but it's not working in ATM task...why?

func

def checkio(data):

bal = 120
withdraw = []
if 5 < data < bal and data % 5 == 0:
    bal = bal - (data + 1)
    withdraw.append(data)
return bal
Created: Aug. 5, 2013, 7:36 p.m.
Updated: Sept. 30, 2013, 1:47 p.m.
0
7
User avatar
leon740gk