Learning Python

A beginner-friendly Python course that starts from zero and builds comfort with printing, variables, strings, numbers, input, conditionals, loops, and a small final project.

Learning Python

Welcome to Learning Python.

This course is a beginner-friendly introduction to Python programming.

You do not need to know anything about coding before starting. The lessons are designed to move slowly, explain new words as they appear, and give you small chances to practice along the way.

Each module has two main files:

  • README.md: the lesson instructions
  • __main__.py: the Python file you will run and edit

The best way to learn is simple:

  1. Open the module folder.
  2. Read the README.md.
  3. Open __main__.py.
  4. Run the code.
  5. Change something small.
  6. Run it again and notice what changed.

Table of Contents

  1. What you will learn
  2. How to use this course
  3. How to run a module
  4. Modules overview
  5. Final project
  6. Tips for learning
  7. Wrap up

What you will learn

By the end of this course, you will have practiced:

  • running Python programs
  • reading output in the console
  • writing print() statements
  • using variables
  • working with strings
  • doing basic math with numbers
  • asking users for input
  • making decisions with conditionals
  • storing groups of values in lists
  • repeating code with loops
  • building a small final project

That is a real foundation.

You will not know every part of Python yet, and that is completely fine.

The goal of this course is to help you get comfortable writing code, reading code, making mistakes, fixing them, and building confidence.

How to use this course

Start with Module 1 and go in order.

Each module builds on the one before it.

For example, variables are easier after you understand printing. Conditionals are easier after you understand input. The final project uses a little bit from almost every module.

Try not to rush.

It is better to understand a small piece well than to fly through everything and feel lost.

If something breaks, that is normal. Read the error, look at the line number, and compare your code to the example.

That is part of programming.

How to run a module

Open the terminal from the learning-python folder.

Then run a module like this:

python3 01_welcome_to_python

For another module, change the folder name:

python3 04_variables

This works because each module folder contains a file named __main__.py.

You do not need to worry too much about that right now. Just remember that the command is:

python3 module_folder_name

Modules overview

Module 1: Welcome to Python

You will run your first Python program.

This module focuses on opening the file, running the code, seeing output in the console, and making one small edit.

You will learn:

  • what Python is
  • what the console is
  • how to run a Python module
  • how to change a simple print() line

Module 2: Python Syntax

You will learn that Python code has a specific shape.

This module introduces syntax, quotes, brackets, indentation, and comments.

You will learn:

  • what syntax means
  • why quotes matter
  • why brackets matter
  • what indentation does
  • how comments work
  • how to spot a few common mistakes

Module 3: Printing and Output

You will practice showing information in the console with print().

Printing is one of the first tools programmers use to understand what their code is doing.

You will learn:

  • what output is
  • how print() works
  • how to print text
  • how to print numbers
  • how to print multiple lines
  • how to use blank lines

Module 4: Variables

You will learn how to store information in variables.

Variables let your program remember values and use them later.

You will learn:

  • what a variable is
  • how to create a variable
  • how to print a variable
  • how to change a variable
  • how to choose simple variable names

Module 5: Strings

You will learn more about text in Python.

Strings are used for names, messages, questions, labels, and sentences.

You will learn:

  • what a string is
  • how strings use quotes
  • how to join strings
  • how to print strings with variables
  • how to use a simple f-string

Module 6: Numbers and Math

You will use Python to work with numbers.

This module keeps the math simple and focuses on how Python understands number values.

You will learn:

  • how to write numbers
  • how to add, subtract, multiply, and divide
  • how to store math results in variables
  • how parentheses affect math
  • why "5" and 5 are different

Module 7: Input

You will make your programs interactive.

Instead of only showing messages, your program will ask the user questions and store the answers.

You will learn:

  • what input is
  • how to use input()
  • how to store an answer
  • how to print an answer back
  • why input starts as text

Module 8: Conditionals

You will teach your program how to make decisions.

Conditionals let Python run different code depending on an answer or value.

You will learn:

  • what a conditional is
  • how to use if
  • how to use elif
  • how to use else
  • how to compare values with ==
  • why indentation matters

Module 9: Loops and Lists

You will work with groups of values and repeated code.

Lists store multiple values. Loops let you go through those values one at a time.

You will learn:

  • what a list is
  • how to create a list
  • how to print a list
  • how to use a for loop
  • how to add an item with .append()

Final project

Final Project: Profile Quiz

At the end of the course, you will build a small profile quiz.

The program will ask the user questions, store answers, make a few decisions, and print a friendly profile summary.

Your project will use:

  • print()
  • variables
  • strings
  • numbers
  • input()
  • conditionals
  • lists
  • loops

The final project is not about being perfect.

It is about putting the pieces together and seeing that you can build something real.

Tips for learning

Run the code often.

Change one thing at a time.

If an error appears, do not panic. Errors are part of learning. They usually mean Python found something it did not understand.

Check for small things first:

  • missing quotes
  • missing brackets
  • missing colons
  • spelling mistakes
  • indentation problems

Also, try the challenges.

The challenges are where the ideas start to stick.

Wrap up

This course starts small on purpose.

You begin by printing one line.

By the end, you build a program that asks questions, stores answers, makes decisions, uses a list, and prints a custom summary.

That is a strong start.

Project details
Python

Environment

Python

Python workspace with Python 3, pip, venv, Python headers, and build tools.

Availability

Always open

Extension Marketplace

Enabled

Starter Files

Included in workspace

Anoch Jeyakanthan

Created By

Anoch Jeyakanthan