A must? No. There's a variety of career paths in the professional domain of cybersecurity that do little-to-no coding. Some don't even read code. However, your professional opportunities and flexibility expand considerably the more open you are to learning and adopting the technologies around you. Python in particular is handy because... It's both a programming language and a scripting language It's compiled to bytecode and (as a script) interpreted at runtime (vs. involving an intermediate compiler/linker), which helps abstract away a lot of overhead when getting to learning programming in general. It's an object-oriented programming (OOP) language, which makes it structurally similar to many other modern programming languages (i.e. Java, C, etc.), if not syntactically dissimilar. It's extensible with the vast number of libraries you can import; this lowers the overhead of learning the language even more. As a high-level language, it's more human-readable than lower-level languages (e.g. C), which makes adoption/learning more easy. Versions of it are shipped by default in many different Linux distributions. Answer from fabledparable on reddit.com
🌐
Reddit
reddit.com › r/learnprogramming › learning python for cybersecurity
r/learnprogramming on Reddit: Learning python for cybersecurity
August 27, 2024 -

I’ve been learning to code and have gone through the basics, even taking classes, but I still struggle to write a simple script or build a tool on my own. What can I do to improve? Any advice on how to effectively learn coding and automation?

Python for Cybersecurity Mar 27, 2026
r/learnpython
4mo ago
How Should I Start Learning Cybersecurity? Oct 27, 2025
r/SecurityCareerAdvice
9mo ago
How to start programming for cybersecurity? Jun 13, 2025
r/cybersecurity
last yr.
Getting started with ethical hacking Oct 18, 2022
r/learnpython
3y ago
More results from reddit.com
🌐
Reddit
reddit.com › r/cybersecurity › python for cybersecurity
r/cybersecurity on Reddit: Python for Cybersecurity
April 4, 2024 -

Hello,

I've been in the cybersecurity space for 10 years but haven't ever touched Python. I'm seeing this is a thing that is required for new roles as of late. Can some of you point me in the right direction to learn Python specifically for cyber roles. I'm going to need this but I'm not exactly sure where to start. I don't see the point in building an "insult generator" or some "moving snake", I don't think those things are going to translate into what I NEED to learn. Thanks.

🌐
Reddit
reddit.com › r/cybersecurity › learning python a must?
r/cybersecurity on Reddit: Learning Python a must?
January 13, 2024 -

I’ve been in IT for 9 years and been a Cybersecurity Analyst for 1. I absolutely suck at coding/scripting but I try my best. I want to further my career and just wanted to know from the seasoned vets in cybersecurity if Python is a must to be successful? I can read it but not write it if that makes sense.

Top answer
1 of 38
73
it will vary I would bet, depending on the company you want to work for, or where you want to go in cybersecurity. But I can speak from my experience, python is one of the many languages I don't know and I'm a SOC manager. PowerShell and Bash would be a better starting point if you don't know those already, in my humble opine. I so far I've found being able to interpret PowerShell has been invaluable.
2 of 38
69
A must? No. There's a variety of career paths in the professional domain of cybersecurity that do little-to-no coding. Some don't even read code. However, your professional opportunities and flexibility expand considerably the more open you are to learning and adopting the technologies around you. Python in particular is handy because... It's both a programming language and a scripting language It's compiled to bytecode and (as a script) interpreted at runtime (vs. involving an intermediate compiler/linker), which helps abstract away a lot of overhead when getting to learning programming in general. It's an object-oriented programming (OOP) language, which makes it structurally similar to many other modern programming languages (i.e. Java, C, etc.), if not syntactically dissimilar. It's extensible with the vast number of libraries you can import; this lowers the overhead of learning the language even more. As a high-level language, it's more human-readable than lower-level languages (e.g. C), which makes adoption/learning more easy. Versions of it are shipped by default in many different Linux distributions.
🌐
Reddit
reddit.com › r/cybersecurity › best way to learn cyber security and python?
Best way to learn Cyber security and Python? : r/cybersecurity
February 19, 2024 - Yea will do but im going to study for the CompTIA courses A+, N+ then start with any coding. ... To start learning about cybersecurity using Python, you can enroll in the Google cybersecurity course available on Coursera. ... Reading your comments on this post, I understand you want to play ...
🌐
Reddit
reddit.com › r/cybersecurity › best resources to start learning python for cybersecurity and automation
r/cybersecurity on Reddit: Best resources to start learning python for cybersecurity and automation
May 9, 2026 -

hi!
recently, I got the CC cert and now I want to focus more on hands-on learning. Considering that my goal is offensive security, I'm starting to learn python for automation and ethical hacking. I was thinking about buying the Black Hat Python book, but after seeing some reviews I'm wondering if it's a good resource for newbies. If you guys have any recommendations for good resources or courses focused on python for Cybersec beginners, please let me know.

I don't want to waste my time learning how to build a calculator and other stuff that isn't related to security. That's why i'm looking for specific resources. I'm open to any tips and advices!

thank you everyone!

🌐
Reddit
reddit.com › r/learnpython › how should i start learning python if i want to use it for cyber security?
r/learnpython on Reddit: How should I start learning Python if I want to use it for cyber security?
August 21, 2021 -

I recently purchased a 60-hour course on Udemy based on Python. It covers the basics, I assume, but there are many other things I would like to learn. I do know Python can be used for cyber security, so that's why I am looking for book recommendations for absolute beginners.

Thank you!

🌐
Reddit
reddit.com › r/learnpython › python for cybersecurity
r/learnpython on Reddit: Python for Cybersecurity
February 1, 2026 -

So, i am currently 16. I have been learning python for 3 months now. I understand data structure (e.g. list and dictionary), loops, basic statements, Boolean, I am also currently studying OOP and i know the basics of it and i understand property and setter , static method, inheritance etc. I also know map filter and lambda and know how recursion works (not so good at complex recursion). I have also spent time on some module such as random, beatifulsoup, request and flask. I have built quite a lot of small project. For example, password generator, simple web scraping, simple backend and frontend for a guess the number website, wordle and many others. I have also done around 20 leetcode questions although they are all easy difficulty.

My goal is to get a high paying job in cybersecurity so I started learning Linux this week in try hack me. I want to know is my python knowledge enough for this stage and which part of python should I work on next in order to prepare for getting a job in cybersecurity.

Any advice is appreciated ❤️

🌐
Reddit
reddit.com › r/cybersecurity › python in cybersecurity
r/cybersecurity on Reddit: Python in cybersecurity
November 24, 2025 -

I’m currently a security analyst looking to work toward a Cybersecurity Engineering role. I have some programming experience, but I’ve never felt fully confident in my programming abilities and am looking to focus on getting comfortable with Python.

Instead of building general projects like games, I want to work on projects that are more specific to my own career goals such as automation, API integrations, log parsing, threat intel enrichment, etc. Ideally, I’d like to build things that I can showcase on my resume, use to automate tasks in my current analyst role, and strengthen the foundational skills I’ll need as I move toward engineering.

Does anyone have recommendations for resources geared specifically toward Python for cybersecurity? Any guidance, project ideas, or resource recommendations would be super appreciated.

Find elsewhere
🌐
Reddit
reddit.com › r/python › will learning python be important for cybersecurity
r/Python on Reddit: Will learning python be important for cybersecurity
October 29, 2020 -

I've seen some people say yes and others say no, I would like to know a knowledge of a programming language is necessary for cybersecurity.

Top answer
1 of 5
116
Short answer: yes Long answer: it is interesting to know at least 1 programming language. It is useful to automate boring tasks (bruteforcing is one example), Understand how the code is evaluated (why does adding a `X OR 1=1` in the input field of a login page of a web-app w/ a SQL DB changes the behavior of the code - SQL injection) Get the logic behind what it takes to build a (web/mobile/...) application. The main point IMO is to learn at least one language, while Python is the greatest language ever been made and is blessed by multiple gods you can still (if you have bad tastes) start with other (lesser) languages. I won't get into the whole my language is better than your's debate bc it would be childish but Ruby, Javascript, C++ or any other languages is a great start too :) Hope it helps :)
2 of 5
39
Hey so cybersecurity engineer and computer science student here. To be honest, I know a lot of analysts who do not have any programming experience beyond the basics (what is an object, what is a branching statement, etc). They couldn’t write a program beyond “hello world”. But they’re still analysts because you aren’t hired to know programming, you’re hired to know how to detect threats, analyze those threats, and report those threats. As an engineer, python isn’t a necessity but it absolutely is helpful for scripting and automating actions. I also know some engineers who aren’t strong in programming. Of course, it all depends on what “flavor” of cybersecurity you want to do. Static malware analysis? Important but not AS important as, say, C. Application security? Super duper important since a lot of applications are written in Python. Penetration testing? Also really important. Network security? Not as important as knowing the fundamentals of networking. You kinda get the gist.
🌐
Reddit
reddit.com › r/learnpython › python for cybersecurity
Python for cybersecurity : r/learnpython
February 12, 2024 - This course is really good to learn Python in detail. That's why I suggest to look if someone asks. ... I don't know if you have a subfield of cybersecurity you'd like to focus on, but learning the networking stack with Python couldn't hurt.
🌐
Reddit
reddit.com › r/cybersecurity › python for cybersecurity - training/learning path
r/cybersecurity on Reddit: Python for Cybersecurity - Training/Learning path
October 23, 2021 -

Hi folks,

I'm looking to learn some Python for automating cybersecurity tasks and malware analysis, something on the lines of the SANS course "SEC573: Automating Information Security with Python".

Since I can't afford the cost of this course and my employer won't pay for it, can anyone suggest a free/low cost learning path or training course for the same?

Thanks in advance!

🌐
Reddit
reddit.com › r/learnpython › cybersecurity with python.
r/learnpython on Reddit: Cybersecurity with python.
March 13, 2025 -

I wantes to know if anyone could link me some videos or websites or something to learn about this. I have some childish knowledge on python and on of my collegemate is pretty good in it and asked me to check this thing out. And help will be appreciated.

🌐
Reddit
reddit.com › r/asknetsec › what project can i do to learn python from a security perspective?
r/AskNetsec on Reddit: What project can I do to learn python from a security perspective?
January 12, 2020 -

Due to dire situations at work I was quickly thrown into manager role only after a few years of being in Cyber. I'm trying to make myself more marketable.

I see a strong demand for security professionals to know python or other object orientated programming languages.

What is a good way to start demonstrating my understanding? I don't use python in my daily job so it's not an option at work so this would be on my own time. I do have a simple blog, so it would be cool to show my learning process over time. The plan would be to be able to show a potential hiring manager I have some practical experience.

I would appreciate suggestions that are doable for a beginner who understands how to program at a basic level. I work best with a tangible goal. I'm just horrible with coming up with ideas.

Thanks for your time.