If you want to learn Python, it's really important to make sure that what you learn now will still matter by the time you're building projects or applying to jobs. I went from non-tech to senior applied scientist at Amazon, and since then I've worked with more than 400 people on moving into AI/ML careers.
The short answer: learn the core of the language, then files, JSON, APIs and error handling, then how to set up your environment. Write every line by hand while you're learning, and use AI like a tutor. Build your first project by hand too, then learn to build with AI in small pieces you can review. Scope your own projects to learn system design, deployment, security and product sense, and put your energy into networking to get hired. This guide covers how much Python you actually need now that AI writes most of your code, and how to learn it and get hired as fast as possible.
The short version
| Step | What to do |
|---|---|
| 1. Know why you're learning it | AI writes the code, but people still approve it and own the result |
| 2. Learn the fundamentals | Core language; files, JSON, APIs and errors; environment setup |
| 3. Make it stick | Write every line by hand, fix your own errors, use AI like a tutor |
| 4. Build your first project | A script, written by hand, that calls a model and does something useful |
| 5. Use AI the right way | Small pieces, specs, predictions, tests, context and cost |
| 6. Build what gets you hired | System design, deployment, security, product sense and judgment |
| 7. Get hired | Early-career programs, startups, your current industry, and networking |
Why learn Python if AI writes code now?
The first question that's probably on your mind is, if AI can already write code, why would I spend time learning Python at all? Anthropic says AI writes about 90% of the code for Claude Code, and Google says 75% of its new code is written by AI.
But look at how these companies actually work. At Google, every one of those changes still gets approved by an engineer. And at Anthropic, anything risky needs a person to sign off, and whoever asked the AI to write the code still owns the result, which is a really important thing.
Recently, I actually got to ask a bunch of experts about this. I was at the AI Engineer Code Summit in San Francisco with over 800 top AI engineers from companies like Anthropic, OpenAI, Lyft and Lovable, and I asked as many of them as I could whether beginners should still learn to code. Every single one of them said yes.
These are people using AI to code at the highest level, and they were extremely clear that understanding what you're doing is still very, very important. There's a big difference between what someone with skill can produce with AI compared to someone without, despite what the hype bros may tell you.
And it's important if you want to work in the field. Python is in more than 70% of AI engineer job postings, so even with AI writing most of the code, most of these jobs still expect you to know it.
For now, let's start with the basics.
The only Python you actually need
Of course, the basics are exactly the part AI is good at, so learning them can feel like a waste of time. And a standard "complete Python" course will have you spending months on things you won't actually need to get started. So instead, I'd focus on three groups of skills:
- The core of the language. Variables, lists, dictionaries, conditionals, loops, functions, and just enough object-oriented programming to understand how it works conceptually.
- Working with files and JSON, calling APIs, and handling errors. Loading documents, sending them to a model, and dealing with whatever comes back is a lot of what you'll be doing day to day.
- Setting up your environment properly. Virtual environments, installing packages, and keeping your API keys out of your code to prevent any security issues.
That's enough to get started, and the rest of Python you can pick up as you build.
How to learn Python so it sticks
That's what to learn. But how you learn it matters just as much.
Most people try to learn Python by passively watching tutorials, and you could sit through literally hundreds of hours of someone else writing code and basically remember nothing. And then any time you do sit down to practice, you have an AI that could write all of the code for you. Learning that way feels great because you get working code right away, but of course that also doesn't stick.
What the research says about learning with AI
Anthropic ran a study on this. They had about 50 developers, mostly juniors, learn a new Python library. Some had an AI assistant and some did not, and then everyone took a quiz. The people coding by hand scored 67%, and the AI group scored 50%. Plus, the AI group finished only about two minutes faster, which wasn't even statistically significant.
The same thing shows up outside of coding too. In a study with about a thousand high school math students, the ones who had GPT-4 did much better on practice problems, but then scored 17% worse on the exam than students who never had AI at all. And interestingly, they had no idea. The students with AI thought that they had done fine. So that shows that feeling like you're learning doesn't actually tell you much.
Write it by hand, and use AI like a tutor
So while you're learning the fundamentals, I'd write every line of code by hand and fix your own errors, even when it's slow and frustrating.
You can still use AI here, but use it like a tutor. Ask it to explain why something works, or give you prompts to help you figure out why your code is breaking, instead of just asking it for the answer with zero thought from your own brain.
And the way to practice is with lots of exercises where you're the one typing the code.
Your first project
Once you've got the fundamentals down, the next step is to build a project, and I'd still write this first one by hand.
A good place to start is to write a Python script that sends some text to a model like GPT or Claude, gets a response back, and does something useful with it, like answering questions from files on your computer. That one project, if done well, uses almost everything from the list: calling an API, working with JSON, handling errors, setting up your environment, and keeping your API key safe.
You'll know you're ready to let AI write code with you when you can:
- read code you didn't write and explain what it does,
- fix a failing test on your own, and
- figure out where your project is likely to break.
Using AI to code the right way
Using AI to code well is a skill in its own right, and companies are actually testing for this now. Canva, for example, replaced its computer science fundamentals screen with an AI-assisted coding interview. This kind of AI-assisted coding interview is becoming a lot more common. They'll give you a harder, vaguer problem, and then the way people fail is just handing everything over to the AI willy-nilly.
Work in small pieces
So when you're building with AI, I'd work in small pieces instead of asking for the whole finished product at once. A good rule is to never ask for more code than you can review in one sitting. Reading code carefully is probably the most underrated Python skill in this guide, because most of the job now is reviewing what the AI wrote and pushing back when it's wrong.
Predict, question, and write a spec
Before you run something, predict what it's going to do, and then if you're wrong, figure out why. If there's a line you can't explain, ask until you can.
And before you ask the AI for anything, write down what you want, including how you'll know whether it worked. That's basically writing a spec, which is another big part of the job now.
Read the tests
Once you're comfortable with that, have the AI write tests too, and then actually read them. AI is good at writing tests, but it will also do silly things with them sometimes, so you need to check that a test would really catch the problem that it's supposed to.
Manage context and cost
As your projects get bigger, how you manage the tool itself starts to matter. Using something like Claude Code well goes way beyond reading and reviewing code. You're managing what the agent knows about, which is its context, and agents get noticeably worse when that fills up with stuff they don't need. So you need to get good at context engineering. You might be running several agents at once on different parts of your project.
And of course you need to learn how to manage cost. Uber famously used up its entire AI coding budget for the year in four months, and so now they cap spending at $1,500 per engineer per month for each tool. So getting good results without wasting tokens is a legit skill, and you can only build it by using these tools on real projects with intention.
By the way, I made a list for you guys with everything in this guide, so you don't have to take notes. You can download that for free here.
What actually gets you hired
So those are the Python fundamentals, but this is really just the baseline, and what gets you hired is everything that you build with these skills.
Think about this from the hiring manager's perspective. If AI can write code, what are they hiring a person for? Right now, that's typically product sense, system design, and good judgment.
I realize that can sound intimidating, and realistically, these skills are harder to learn as a beginner, but it's not impossible. The way to learn them is to build projects you scope yourself instead of following along with tutorials or having AI write the whole thing for you. In a tutorial, someone else has already made all of the interesting decisions. When it's your own project, you have to make those decisions.
So let's say a family friend runs a small business, and you decide to turn your project into a tool that answers their customers' questions using their own documents.
System design
The first thing you'll run into is how the whole thing fits together. Where do the documents live? How does your app find the right one for a given question? What happens when the model is slow or gives a wrong answer?
You have to make these decisions yourself, and when one of them turns out to be wrong, you'll understand why in a way you never would from a diagram that someone else drew. So that is system design.
Infrastructure and deployment
Then your friend wants to start using it, which means it can't just live on your laptop anymore. So now you'll need to figure out how to deploy it, where it's going to run, how you're going to find out what happened when it breaks, and how much it costs to keep it running every month. That's how you learn infrastructure and deployment.
Security
As soon as real users and real company documents are involved, you have to start thinking about security. Where are your API keys stored? Who's allowed to see which documents? What happens if someone types something into your app that they're not supposed to?
This last part is worth taking particularly seriously. The CEO of Lovable, which is an AI app builder, said security is where they're growing the team the fastest.
Product sense
Now, all of that assumes you've built the right thing in the first place. When you watch your friend use the product, you'll find out which parts they actually needed, what you just thought was cool, and what maybe doesn't work very well. That's product sense.
Judgment
The whole way through, you're making tradeoffs, like which model to use, or whether you care about speed or cost more. I'd write these decisions down as you go, along with why you made them, because being able to explain your choices is exactly the judgment these job postings are asking for.
Getting hired in this market
Okay, so let's say you've done all of that and you're a Python pro who can build real stuff. Now someone has to actually hire you. And honestly, this is the hardest part right now.
New-grad hiring at the big tech companies is down about 65% from 2019. Even experienced people are taking longer to find jobs. In one survey this year, tech job searches averaged about 10 months. And only about 6% of software engineering job postings are entry level.
But at the same time, tech unemployment is 2.8%, which is below the national rate of 4.1%, so people are getting hired. And employers posted almost 50,000 new software developer openings in September alone, so even a small slice of that is a lot of jobs. So it's by no means impossible.
Ways in for beginners
There are absolutely still ways in for beginners:
- Internships and early-career programs. Some big companies are still running large ones. Amazon planned for about 11,000 software engineering interns and early-career hires this year. IBM said it's tripling its entry-level hiring in the US. Cloudflare is aiming for up to 1,100 interns, and it fast-tracks people who've built an app on its platform, which is another way to make a cool project, by the way.
- Startups. People get in by reaching out directly with something that they've already built, like that project from earlier.
- The industry you're coming from. If you already have work in another field, I'd look at AI roles there, because that domain knowledge can be a real advantage.
Networking
Whichever of those you go for, networking is the most important thing you can do for your career. In hiring data from Ashby covering about 250,000 hires, referrals were about 1% of applications and 18% of hires. So networking will do way more for you than sending applications into the void.
One of the members of my community, the AI/ML Career Launchpad, is the most prolific networker I know. He got so many referrals and interviews that he actually had to push his FAANG interview out by months just to keep up with all of them. I'm so passionate about this because I truly believe that it is possible with the right approach, no matter where you're coming from.
What if AI changes everything?
But I understand that it's really easy to fall into the doom-and-gloom cycle right now. Like, even if you learn to code and get a job, will you still have one in five years? Is it worth it?
One thing I like to remind myself is that there are more ways that this could play out than we often think about. Maybe AI does keep getting cheaper and more capable. Or maybe it stays capable but gets more expensive, and companies ration it like Uber. Progress could level off around where it is today, or it could move even faster than people expect. Or maybe the laws change, or maybe energy gets really expensive, or maybe it gets super cheap.
There are so many potential futures, and it's honestly kind of ridiculous to assume we know which one will happen. And in some of those potential futures, people who learn this now are set up really well. A lot of software that used to be too expensive to bother making is now worth building, and demand for cool stuff is unlikely to go down just because supply goes up too.
So if this is something you want to do, I think it's a fair gamble to do it, because in a world where the future is uncertain, all we can do is follow what we're passionate about and what we believe is right.
What to learn next
So don't let the doomers get you down. The people I talked to at the conference use these tools more than anyone, and they still think learning to code is worth it. If this is something you're excited about, it comes down to being strategic about what you learn, being ready to work really hard, and staying flexible as things change.
And if you're starting without a tech background like I did, I have a full video on how to become an AI engineer even with no computer science degree. Check that out up next.
If you want help building your own production-ready project, I run a small, application-only build cohort where I personally work with a handful of people over eight weeks to take an AI engineering project all the way through deployment.
Frequently asked questions
Is it still worth learning Python if AI can write code?
Yes. Python is in more than 70% of AI engineer job postings, so even with AI writing most of the code, most of these jobs still expect you to know it. People also stay responsible for what AI writes: at Google every AI-written change still gets approved by an engineer, and at Anthropic whoever asked the AI to write the code still owns the result. There's a big difference between what someone with skill can produce with AI compared to someone without.
How much Python do you need to get started?
Three groups of skills are enough to get started. First, the core of the language: variables, lists, dictionaries, conditionals, loops, functions and a conceptual understanding of object-oriented programming. Second, working with files and JSON, calling APIs and handling errors. Third, setting up your environment: virtual environments, installing packages and keeping your API keys out of your code. The rest you can pick up as you build.
Should beginners use AI to learn Python?
Yes, but like a tutor. Ask it to explain why something works, or to give you prompts that help you figure out why your code is breaking, instead of asking for the answer. In an Anthropic study of about 50 developers learning a new Python library, the people coding by hand scored 67% on a quiz and the AI group scored 50%, and the AI group only finished about two minutes faster, which wasn't statistically significant.
What is a good first Python project?
Write a Python script, by hand, that sends some text to a model like GPT or Claude, gets a response back and does something useful with it, like answering questions from files on your computer. Done well, that one project uses almost all of the fundamentals: calling an API, working with JSON, handling errors, setting up your environment and keeping your API key safe.
When are you ready to let AI write code with you?
When you can read code you didn't write and explain what it does, fix a failing test on your own, and figure out where your project is likely to break. From there, work in small pieces and never ask for more code than you can review in one sitting.
What skills do you need to get hired beyond Python?
Right now, that's typically product sense, system design and good judgment. The way to learn them is to build projects you scope yourself instead of following along with tutorials or having AI write the whole thing for you. Taking a project from your laptop to a real user also teaches you infrastructure, deployment and security.
Can beginners still get hired in tech?
Yes, but it's harder. New-grad hiring at the big tech companies is down about 65% from 2019, and only about 6% of software engineering job postings are entry level. But tech unemployment is 2.8%, below the national rate of 4.1%, and employers posted almost 50,000 new software developer openings in September alone. Networking helps most: in Ashby hiring data, referrals were about 1% of applications and 18% of hires.





