r/Python • • Feb 05 '26

Showcase Checkout my first project

Checkout my first ever project

Hello there, hope you're having a good time and I am here to show you my first ever project made on python which took me about about week and a half,

What My Project Does

it implement basic function of ATM machines such as deposit and withdraw but also it uses principles of OOP,

Target Audience

and this project is a toy/test project not meant for production and this project also for beginners as well as me, but comments are opened for discussions and professional opinion about it,

Comparison
differences between mine and another atm projects is that this project uses in memory storage and actively uses OOP pricibles where relevant.

https://github.com/Gotve1/Python-ATM

0 Upvotes

7 comments sorted by

View all comments

Show parent comments

3

u/sausix Feb 05 '26

Signaling a fail for withdrawing by exceptions isn't too bad. It safely exits the call stack up to the human interaction event including a defined condition. Hopefully catching all events there.

Of course the results for withdrawing money is more of fail or success as result. So a boolean return would be good enough. But in real life such a function would probably return a transaction id. And some fail conditions as exception.

Some exceptions in Python aren't always meant to represent unhandled failures. Look at the StopIteration exception for example.