I believe the question you tried to solve was ATM, right?
Well, regarding the runtime error, I’ll say I am totally clueless about what it can be… Maybe it’s some error in the output formatting, or some argument passed to the print function that it’s not being recognized by the judge… (The RTE is by far the most upsetting one can get, imo… almost all my Go submissions here are being judged as RTE, and I believe it’s also I/O format related…)
Nevertheless, using parts of your code, plus my accepted solution in C++ and seeing how an accepted python solution was designed, I managed to get accepted with this Python code:
if (withdraw%5 != 0) or (balance < withdraw+0.5):
What’s more weird to me is the lack of formatting passed to the print function, that, I recall, is mandatory to get accepted… My only explanation to this fact, is that by passing the current balance as a float value with 2 decimal places to input, all further calculations will be performed with 2 dp as well… But it seems quite weird I must say…
I hope I could help though,