[crypto] Flippin_Bank

Hi, can anyone give me some help on this challenge, please?
I wrote a python script, that seems to work as I wish, but I cannot seem to retrieve the good output