• What I'm doing wrong?

Question related to mission ATM

 

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