Learning Python as a beginner with a mentor
By the Oskooly teamUpdated November 6, 20264 minutes to read
In short
You can learn Python as a complete beginner by writing small programs from your first week. A mentor helps most with what slows beginners down: setting things up, understanding error messages and choosing what to learn next. Practice between lessons matters more than the lessons themselves.
Python is a popular first programming language because it reads almost like English and you can do useful things with it quickly: automate boring tasks, work with data, build websites and more. You don't need a maths degree or a powerful computer. You do need a bit of patience, and a willingness to be confused for a while. Everyone is.
Do you need a mentor at all?
Honestly, not always. There's a huge amount of free Python material online, and some people learn well that way. Others start a course, get stuck on an error nobody explains, and quietly give up.
A mentor is worth it if:
- you've started and stopped before
- you want to reach a specific goal, such as automating a report or changing careers
- you learn better by asking questions than by watching videos
- you'd like someone to look at your code and tell you how to make it better
What to learn first
Most beginners do well with roughly this order. A good mentor will change it to suit your goal.
- The basics: variables, numbers and text, printing results, taking input.
- Making decisions and repeating: if statements and loops.
- Organising data: lists and dictionaries.
- Functions: writing your own reusable pieces of code.
- Files and errors: reading and writing files, and learning to read error messages calmly.
- Using packages: installing and using code that other people have written.
Once you can do these, choose a direction. For working with spreadsheets and numbers, look at data analysis. For building sites, try web development. For a deeper understanding of how computing works, computer science is a good next step.
How to use your lessons well
You'll get far more from a lesson if you do the typing. Ask your mentor to watch you write the code rather than showing you finished code. You can share your screen from a computer, so use a laptop or desktop for Python rather than a phone. The classroom also has a chat, which is handy for pasting error messages.
Before each lesson, write down:
- one thing you tried that worked
- one thing that didn't, and what the error said
- one question you couldn't answer by searching
That list turns a lesson into exactly what you need. At the end, ask your mentor for one small task to do before you next meet.
Practise between lessons
Programming is a skill you build with your hands. Twenty minutes most days beats one long session a week. If you only code during lessons, progress will be slow however good your mentor is.
Small projects keep it interesting, and they teach you more than exercises alone:
- a program that renames a folder of files
- a simple quiz or number guessing game
- a budget tracker that reads your spending from a file
- a script that combines several spreadsheets into one
Try to build something you'd actually use. When it breaks, and it will, that's the lesson.
A note on AI tools
AI assistants can write Python for you, and they can be a great help for explaining an error. But if they write everything, you won't learn to think it through, and you won't be able to spot when they're wrong. A good rule is to try first, ask second, and make sure you can explain every line you keep. Talk to your mentor about how to use these tools without skipping the learning. Our guide to AI tools at work has more on this.
How long will it take?
It depends on your goal and how much you practise, so be careful of anyone who promises a job in a fixed number of weeks. Reaching the point where you can write small useful scripts is a realistic early goal. Working as a developer takes far longer, and a good mentor will tell you so honestly.
Getting started
Compare mentors on our Python page. Look for someone who says they work with beginners, tell them your goal, and book a first lesson. Our guides to choosing a mentor and what a good trial lesson looks like can help, and our help center explains how booking and the classroom work.