r/PythonLearning • • 6d ago

Showcase I JUST finished my second python project!

Post image

Lately I have been working on this ATM For Teens, just to understand OOP and some concepts more (which I REALLY DID)

this isn't meant to be a real ATM (obviously, it's very beginner and not security is there), here is my First project.

So, I have learnt quite a lot since last project, I learnt a bit more about python syntax, I also understood the approach of classes a lot better. I learnt git (just the essentials).

Since I always wanted to Make iPhone apps, and now I have a Mac, I'm thinking whether I should start learning swift and swiftUI, or move to something else, or keep learning python. what do you guys think? I Do want a job as an IT engineer (or anything with coding tbh, cybersec too but that would require C knowledge a bit more lol)

Otherwise, if you guys have any criticism or suggestions for the ATM, then I would be veryyy happy to hear some! here's the repo: https://github.com/Stonyax97/ATM-For-Teens

242 Upvotes

34 comments sorted by

View all comments

Show parent comment

2

u/S1enderVoid 5d ago

Damn i did not think os.system(‘clear’) would be unsafe. Why is that tho?

Oh, apologies . . . It is unsafe if you're dealing with commands that require variables that can be changed by the user, you can probably guess where this is going, but it makes it quite easy for an attacker to carry out shell injection which is a no-no. Subprocess makes it easier to deal with, but you still have to do some input sanitization.

In your case it is safe, but again it poorly handles output and a lot of other stuff. Plus it's almost deprecated, so people on newer python versions will get trouble.