How to Learn Python From Scratch
18 Nov 2026, 10:12 am

The most dependable way to learn Python from scratch is to install it, write tiny programs every day, and add one concept at a time: printing output, variables, decisions, loops, and then functions. You do not need a maths background or any earlier coding experience. Most beginners feel comfortable with the basics after a few weeks to a few months, depending mainly on how many hours a week they actually spend typing code.
Who this guide is for
Picture three people. A Class 11 student who wants to understand what the computer science chapter is really about. A commerce graduate who is thinking about moving into a more technical role. A working professional who spends every Monday copying numbers between spreadsheets and would like to stop. Their goals differ, but the first month of learning looks almost the same for all of them, and that is what this page covers.
If you already know the basics and want a bigger map, read our Python roadmap for beginners. If you are a parent looking for something suited to a younger child, coding tutors for kids are a better starting point.
Step one: get Python running on your own computer
Download the installer from the official Python website, run it, and tick the option that adds Python to your system path on Windows. Then choose one editor and stay with it for a while. A beginner friendly editor with a built in terminal is enough. Online notebooks also work if your computer is old or shared at home.
The goal of this first sitting is small. Open the editor, create a file ending in .py, run it, and see a result on screen. If that works, you have cleared the hurdle that stops a surprising number of people before they begin.
Step two: write programs that do something visible
Skip long videos at this stage and type these yourself, even though copying would be faster.
Print your name and your city using
print.Ask for a person's name with
inputand greet them.Ask for two numbers and show their sum, then notice that input arrives as text and must be converted first. This small surprise teaches more than a page of theory.
Calculate the total of a restaurant bill with a tip and tax.
Each of these is only a few lines long. The point is the loop of typing, running, seeing an error, and fixing it. That loop is the actual skill you are building.
The core ideas, in an order that works
Variables and data types
A variable is a name attached to a value. Learn the four everyday types first: whole numbers, decimal numbers, text and true or false values. Practise changing one into another.
Decisions with if and else
Programs become interesting when they choose. Write a small grade calculator that prints a result band for a mark. Then add one more condition, and another. You will quickly see why indentation matters in Python.
Loops
A loop repeats work. Print a multiplication table, add up the numbers from one to a hundred, or keep asking for a password until it matches. Loops are where beginners first feel that the computer is saving them effort.
Lists, dictionaries and strings
A list holds an ordered collection, and a dictionary holds labelled values, such as a student name matched to a mark. Practise adding, removing, searching and looping through both.
Functions
A function packages a task under a name so you can reuse it. Once you can write one that takes inputs and returns a result, you have crossed from copying snippets to designing small programs. Slightly later come files, errors and classes, which the roadmap article places in sequence.
Practice habits that make it stick
Short and daily beats long and rare. Thirty to forty five minutes on most days works better than one six hour weekend session.
Type, do not paste. Your fingers remember syntax that your eyes only recognise.
Change the example. After any tutorial program works, alter it. Add a feature, break it on purpose, then repair it.
Read the error message. The last line usually names the problem, and the line number points to where to look.
Keep a small notebook. Write down each mistake and its fix. Within a month you will notice the same few errors repeating.
Build something tiny every week. A tip calculator, a quiz, a contact list. Our guide to beginner Python projects has ideas sorted by level.
Mistakes that slow beginners down
The most common one is tutorial hopping: starting a new course every time progress feels slow. Slow is normal around loops and functions. Pick one resource and finish it.
The second is watching without typing. Understanding a video feels the same as understanding code until you face a blank file. The third is avoiding errors by always copying working code. Errors are the teacher here, so let them happen.
The fourth is trying to learn everything at once. Web development, data analysis and automation all use Python, but you do not need to choose on day one. Learn the language first, and branch afterwards.
How long do the basics take?
Nobody can give an honest single number, because it depends on your weekly hours, your earlier habits with logic, and how often you practise. As a rough and hedged guide, someone studying a little most days may be writing small useful programs within a few weeks, and may feel secure with functions, lists and dictionaries within two to four months. Being job ready, or able to build full applications, takes longer and varies widely. Treat any promise of mastery in a fixed number of days with caution.
Learning alone, with videos, or with a tutor
Self study is perfectly possible and many people succeed at it. The usual trouble points are getting stuck on a bug for hours, not knowing what to learn next, and losing momentum without anyone expecting you to show up. A tutor helps most with exactly those three. We compare the options openly in Python tutor vs online course vs YouTube.
If you do look for a tutor, compare qualifications, teaching experience and reviews on each profile, say clearly whether you are a school student or a career switcher, and ask for a demo class before committing. Online classes make it possible to learn from a tutor in another city, and tutors listed on FindMyGuru can teach online or in person.
A sensible first month
Week one: install Python, print and input, variables, simple arithmetic.
Week two: if and else, comparisons, a small quiz program.
Week three: loops, lists and a tiny to do list.
Week four: functions, then rebuild one earlier program using functions.
Do not worry if you stretch a week into two. The order matters more than the speed.
When you want someone to check your code and set the next step, browse Python tutors on FindMyGuru, compare their profiles, and contact one directly to discuss classes, fees and schedules.