All Topics

Python

This series takes you from your very first Python script to writing clean, modular code. You will master variables, strings, numbers, lists, tuples, dictionaries, control flow, functions, and modules — each concept explained with hands-on examples you can run immediately.

29 tutorialsLast updated Mar 17, 2026
1

The Complete Guide to Setting Up Your Python Development Environment

Everything you need to go from zero to writing Python — install Python 3 on Linux or Windows, set up VS Code or Sublime Text as your editor, configure essential extensions, and run your first script.

Jan 1, 2026pythonsetupvscode
2

Python Variables and Data Types

Understand how Python stores data — from naming rules and type checking to a hands-on tour of every built-in data type.

Jan 10, 2026pythonvariablesdata-types
3

Python Strings and String Methods

Master Python strings — from creation and immutability to essential methods like split, join, strip, and modern f-strings.

Jan 15, 2026pythonstringsmethods
4

Python Numbers and Arithmetic

A practical guide to integers, floats, and arithmetic in Python — including operator precedence, type conversion, and the infamous float precision gotcha.

Jan 20, 2026pythonnumbersarithmetic
5

Python Lists — Part 1: Introduction, Indexing, and Mutability

Learn what Python lists are, how to create them, understand their core characteristics, master positive and negative indexing, work with nested lists, and leverage mutability.

Jan 25, 2026pythonlistsdata-structures
6

Python Lists — Part 2: Essential List Methods

Master every essential Python list method — sort(), append(), extend(), index(), insert(), remove(), pop(), reverse(), count(), copy(), and clear() — with practical examples.

Jan 26, 2026pythonlistsmethods
7

Python Lists — Part 3: Built-in Functions for Lists

Learn how Python's built-in functions — len(), sum(), min(), max(), sorted(), list(), enumerate(), and zip() — make working with lists cleaner and more Pythonic.

Jan 27, 2026pythonlistsbuilt-in-functions
8

Python List Comprehension and Slicing

Write cleaner Python with list comprehensions and slicing — learn concise syntax for filtering, transforming, and extracting data from lists.

Jan 30, 2026pythonlist-comprehensionslicing
9

Python Tuples: The Complete Guide

Master Python tuples from creation to advanced methods — understand immutability, indexing, slicing, built-in functions, and when to choose tuples over lists.

Feb 4, 2026pythontuplesdata-structures
10

Python Dictionaries: Basics and Key Concepts (Part 1 of 3)

Learn the fundamentals of Python dictionaries — what they are, how to create them, key restrictions, accessing values, and understanding case sensitivity and integer keys.

Feb 9, 2026pythondictionariesdata-structures
11

Python Dictionaries: Operations and Patterns (Part 2 of 3)

Master essential dictionary operations — adding and updating entries, iterating by keys, values, and items, nested dictionaries, dictionary comprehensions, and membership testing.

Feb 10, 2026pythondictionariesdata-structures
12

Python Dictionaries: All 11 Built-in Methods (Part 3 of 3)

A complete reference for every Python dictionary method — .clear(), .copy(), .fromkeys(), .get(), .items(), .keys(), .values(), .pop(), .popitem(), .setdefault(), and .update() — with practical examples.

Feb 11, 2026pythondictionariesdata-structures
13

Taking User Input in Python

Learn how Python's input() function works, how to cast types for numeric data, and build a simple calculator — your first step toward interactive programs.

Feb 14, 2026pythoninputbeginner
14

Python Operators — The Complete Guide

Master every category of Python operator — arithmetic, assignment, comparison, logical, and bitwise — with clear examples, truth tables, and a precedence reference.

Feb 19, 2026pythonoperatorsbeginner
15

Python Conditionals — if, elif, else, and Beyond

Learn how Python makes decisions with if, elif, and else — plus indentation rules, nested conditions, and the ternary expression.

Feb 24, 2026pythonconditionalsif-else
16

Python Loops — while, for, and Loop Control

A comprehensive guide to Python loops — master while loops, for loops, range(), loop control statements, and nested iterations with practical examples.

Mar 1, 2026pythonloopsfor-loop
17

Python Functions: Define, Call, and Reuse Your Code

Learn how to write reusable Python functions with parameters, return values, default arguments, and nested function calls — complete with practical examples.

Mar 6, 2026pythonfunctionsbeginner
18

File Handling in Python — Part 1: Creating, Writing, and Reading Files

Learn how file handling works in Python — understand why files matter, how to use the open() function and file modes, and how to create, write, and read files with practical examples.

Mar 10, 2026pythonfile-handlingio
19

File Handling in Python — Part 2: Appending, Deleting, the with Statement, and File Pointers

Complete your Python file handling knowledge — learn how to append data, safely delete files with the os module, use the with statement as a context manager, and understand how the file pointer drives every read and write operation.

Mar 10, 2026pythonfile-handlingos-module
20

The Complete Guide to File Handling in Python

Master every file operation in Python — creating, writing, reading, appending, and deleting files. Includes the with statement, file pointers, the os module, and practical patterns for safe file I/O.

Mar 10, 2026pythonfile-handlingio
21

Error Handling in Python: try, except, finally, and Custom Exceptions

Learn to write crash-proof Python programs. This guide covers syntax errors, runtime exceptions, logical errors, and the full try-except-finally pattern — plus how to raise your own custom exceptions.

Mar 11, 2026pythonerror-handlingexceptions
22

Python Modules and Libraries: Organize and Supercharge Your Code

Understand how Python modules and libraries work — learn to create your own modules, import built-in ones like math and platform, and discover powerful third-party libraries.

Mar 11, 2026pythonmoduleslibraries
23

Object-Oriented Programming in Python — Part 1: Classes and Objects

Learn the foundations of OOP in Python — what classes and objects are, how to define attributes and methods, the __init__ constructor, the self keyword, and how to create and modify object instances.

Mar 12, 2026pythonoopclasses
24

Object-Oriented Programming in Python — Part 2: Encapsulation and Inheritance

Deep dive into two foundational OOP pillars — encapsulation (private attributes, getters, setters) and inheritance (parent/child classes, method overriding) — with hands-on Python examples.

Mar 13, 2026pythonoopencapsulation
25

Object-Oriented Programming in Python — Part 3: Polymorphism and Abstraction

Complete the four pillars of OOP — learn polymorphism (operator overloading, method overriding, class polymorphism), abstraction (abstract base classes), and Pythonic Duck Typing with practical examples.

Mar 14, 2026pythonooppolymorphism
26

Regular Expressions in Python — Part 1: Basics, Special Characters, and Essential Functions

Learn the fundamentals of regular expressions in Python — understand what regex is, how to use the re module, special characters, quantifiers, and essential functions like search, findall, match, sub, and split with practical examples.

Mar 15, 2026pythonregexregular-expressions
27

Regular Expressions in Python — Part 2: Groups, Backreferences, Flags, and Password Validator Project

Dive deep into advanced regex features — learn groups and backreferences for capturing and reusing parts of a match, regex flags for controlling match behavior, and build a practical password strength validator project.

Mar 15, 2026pythonregexregular-expressions
28

Higher-Order Functions in Python: map, filter, reduce, zip, and sorted

Master Python's most powerful functional tools — map, filter, reduce, zip, and sorted. Learn how higher-order functions eliminate loops, clean up your code, and process data like a pro, with a real-world sales analysis project.

Mar 16, 2026pythonhigher-order-functionsmap
29

Python Packages & PIP Explained: Install, Use, and Manage External Libraries

A complete beginner's guide to Python packages and PIP — learn what packages are, how PyPI works, and how to install, use, and uninstall external libraries like NumPy from the command line.

Mar 17, 2026pythonpippackages