Skip to content
Free course Programming Certificate included

Python Programming for Beginners

Write your first programs and think like a programmer

  • Beginner level
  • 10 hours
  • 13 lessons
  • English
  • By Muninder Singh

What you'll learn

  • Install Python or use an online editor and run programs
  • Use variables, numbers, strings and user input
  • Make decisions with if, elif and else
  • Repeat tasks with for and while loops
  • Write reusable functions
  • Store data in lists and dictionaries
  • Read and write files and handle errors
  • Build small practical projects

Course curriculum

4 sections · 13 lessons · 7h 5m

01Getting Started with Python 3 lessons
  • What Is Programming? Setting Up Python Free preview25 min

    What is programming?

    A program is a list of instructions that tells a computer exactly what to do. Computers are fast but not clever. They follow instructions literally. Programming is the skill of breaking a problem into small, clear steps and writing them in a language the computer understands.

    Think of a recipe: "Boil water. Add tea leaves. Boil for 2 minutes. Add milk and sugar." A program is a recipe for a computer.

    Why Python?

    • Easy to read: Python code looks close to plain English.
    • Versatile: used for automation, data analysis, websites, AI and machine learning, games and teaching.
    • Huge community: free libraries and answers for almost any problem.
    • In demand: Python skills appear in many data and software job descriptions.

    Option 1: Use Python in your browser (no installation)

    If you are on a shared or low-spec computer, use a free online editor. Search for "online Python editor" or use services such as Google Colab (needs a Google account), Programiz Online Python Compiler or Replit. Type code on one side and click Run.

    Option 2: Install Python on Windows

    1. Go to the official website python.org → Downloads → download the latest Python 3 release for Windows.
    2. Run the installer and tick "Add python.exe to PATH" before clicking Install Now. This step is important.
    3. Open the Start menu, search for IDLE (Python's simple editor) and open it.

    To check the installation, open Command Prompt and type:

    python --version

    You should see something like Python 3.13.x.

    For bigger projects many programmers use the free editor Visual Studio Code with the Python extension.

    Your first program

    In IDLE choose File → New File, type the line below, save it as hello.py and press F5 to run:

    print("Namaste! I am learning Python.")

    Output:

    Namaste! I am learning Python.

    print() is a function that displays whatever you put inside the brackets. Text must be inside quotation marks.

    Comments

    Lines that start with # are comments. Python ignores them; they are notes for humans.

    # This program greets the user
    print("Welcome to the Python course")

    Errors are normal

    If you misspell something, Python shows an error message, for example SyntaxError or NameError. Read the last line of the message. It tells you what went wrong and on which line. Every programmer sees errors every day.

    Practical exercise

    1. Set up Python (installed or online).
    2. Write a program that prints your name, your city and your favourite subject on three separate lines.
    3. Add a comment at the top describing the program.
    4. Deliberately remove a quotation mark, run it, and read the error message. Then fix it.
  • Variables, Data Types and Operators Free preview35 min

    Variables

    A variable is a name that stores a value, like a labelled box. You create one with =:

    name = "Asha"
    age = 19
    height = 5.4
    is_student = True

    You can then use the name instead of the value:

    print(name)
    print(age + 1)

    Naming rules

    • Use letters, numbers and underscores; do not start with a number: total_marks ✓, 2marks ✗.
    • Names are case-sensitive: Age and age are different.
    • Use clear, lowercase names with underscores: monthly_salary, not ms or x1.

    Basic data types

    TypeExampleMeaning
    int25, -3Whole numbers
    float3.14, 99.5Decimal numbers
    str"Delhi", 'Python'Text (string)
    boolTrue, FalseYes/no values

    Check the type of any value with type():

    print(type(99.5))    # <class 'float'>

    Arithmetic operators

    OperatorMeaningExampleResult
    +Add10 + 313
    -Subtract10 - 37
    *Multiply10 * 330
    /Divide10 / 33.333…
    //Floor divide10 // 33
    %Remainder (modulus)10 % 31

    Powers use a double star, for example:

    print(2 ** 10)   # 1024

    Python follows normal maths order: brackets first, then powers, then multiply/divide, then add/subtract. Use brackets to make your meaning clear.

    Comparison operators

    These give True or False: == (equal), != (not equal), >, <, >=, <=.

    print(75 >= 40)   # True

    Note: = assigns a value; == compares two values.

    Updating variables

    balance = 1000
    balance = balance + 500    # 1500
    balance += 250             # shortcut, now 1750

    Converting types

    price = "250"            # this is text
    total = int(price) * 2   # convert to int → 500
    print(str(total) + " rupees")

    Practical exercise

    Write a program that:

    1. Stores the price of a notebook (₹45) and the quantity (12) in variables.
    2. Calculates the total, then a 10% discount, then the final amount.
    3. Prints each value with a label, e.g. Final amount: 486.0.
    4. Uses % to check whether the quantity is even (remainder 0 when divided by 2).
  • Strings and User Input 30 min
02Making Decisions and Repeating 3 lessons
  • Conditions: if, elif and else 35 min
  • Loops: for and while 40 min
  • Mini Project: Number Guessing Game 30 min
03Functions and Collections 3 lessons
  • Writing Your Own Functions 35 min
  • Lists and Tuples 35 min
  • Dictionaries and Sets 35 min
04Files, Errors and Projects 4 lessons
  • Reading and Writing Files 30 min
  • Handling Errors and Using Modules 30 min
  • Final Project: Expense Tracker 45 min
  • Final Exam 20 min

About this course

Why Python?

Python is one of the most popular programming languages in the world. It reads almost like English, so it is the best first language, and it is used for real work in data analysis, automation, web development, artificial intelligence and teaching.

How you will learn

Every lesson has short code examples you can run yourself and a practice task. You can use a free online editor in your browser, so you can even start on a low-cost laptop or at a cyber café.

What you will build

A marks calculator, a number-guessing game, a simple expense tracker that saves to a file, and more.

Requirements

  • Basic computer and internet skills
  • A computer with Python 3 installed, or any browser for an online editor
  • No programming experience needed

Earn a verifiable certificate

Pass the final online exam (20 minutes, 15 questions, pass mark 40%) to receive your certificate instantly. Each certificate has a unique number and QR code for instant verification.

This is an independent, institute-issued skill-training certificate — not a government-recognised degree or diploma.

Your educator

M

Muninder Singh

Frequently asked questions

Can I learn Python without any coding background?
Yes. This course assumes no prior programming knowledge and explains every concept step by step.
Can I learn Python on a mobile phone?
You can read lessons and try small programs in mobile apps, but a computer is much better for typing code.
Which version of Python is used?
Python 3 (any recent 3.x version). Python 2 is no longer supported.
Will this course get me a job?
It is a strong first step. Jobs usually need further skills such as data analysis libraries or web frameworks, plus projects you can show.
Is the certificate free?
Yes. Pass the final exam with 40% or more to download it.

Have a question about this course?

Leave your details and our team will get back to you, usually within one working day.

Share a phone number or an email so we can reach you. We never share your details.

Related articles

Career Guides 6 min read

Which Programming Language Should You Learn First?

Python, C, Java or JavaScript? An honest comparison of the best first programming language for your goal, with the same program in each, a decision table and a plan for your first 30 days.

Read article →
Tutorials 8 min read

15 Simple Python Programs for Beginners (with Code)

Fifteen short, tested Python programs for beginners, from Hello World and even/odd to prime numbers, palindromes, a shopping bill and a guessing game, each with its output and what it teaches.

Read article →

You may also like

Free

Includes certificate

Enrol free