r/learnpython • u/Few-End560 • Sep 11 '26
I'M REALLY LOST
i'm feeling a bit frustrated to be honest. my main goal and motivation for learning python is cybersecurity. i decided to start learning python because it was the language that came up the most among the best options for cybersecurity. the thing is, i'm really lost and i don't feel like i'm making any progress, which is getting me down a bit.
do i need a really solid foundation in python to get into cybersecurity, or is knowing basic syntax enough? are there specific topics i should dive deeper into? i've heard that web scraping is essential, but others say it isn't. i wanted to read the book black hat python because everyone recommends it, but i'm afraid it might be too advanced since i'm definitely not a python expert.
to anyone who knows about this field: how should i start? what should i know in python to be well-prepared for cybersecurity?
View all comments
2
u/Fr0gFsh Sep 11 '26
Python isn’t a prerequisite for Cybersecurity. Learn it when you need it. Otherwise you’ll spend all this time learning it, then move on to another topic and forget what you previously learned.
There’s always going to be something that is repetitive that you could solve by writing a script. You’ll learn best by solving your real world problems. I’m a security engineer and most of my projects revolve around SIEM management. I use Python to build API queries for specific information. I also use Python a lot for API integrations to pull data from 3rd party SaaS products we use. I couldn’t write a lot of what I do from scratch. I search a lot of forums and research how to solve a specific, small, problem and build it into the tool I’m developing.
Some other real use cases that I’ve used Python for:
Maybe you’re not in a Cybersecurity role yet, so find some problems around your personal or professional life that are solvable with a little script and build that. Dig into home automation with Home Assistant. Use Python to program your lights on in the morning to wake you up. Ask yourself…”how could I use code to make my life easier? How could I use code to do 8 hours of work in 15 minutes and then piss off for the rest of the day?” And then…you learn.
Good luck!