Skip to content
Codeloom

Topics / Python

Python

The most-used language in the world. Tutorials from absolute beginner to advanced.

Why learn Python?

  • Reads almost like English — the easiest mainstream language to start with.

  • The default tool for data, AI, automation, scripting, and backend services.

  • Massive standard library and the largest open-source package ecosystem on PyPI.

  • In demand for nearly every role from web developer to ML engineer to DevOps.

What you can build with Python

Web APIs with FastAPI or Django Data analysis with Pandas Machine learning and AI Automation, scripting, and glue code CLI tools and DevOps workflows

Python tutorials

87 articles · page 1 of 5

Hand-written tutorials, ordered as a recommended learning path.

  1. 01 What is Python? A clear, professional introduction to Python — what it is, how it works, why it dominates modern software development, and what you can build with it as a beginner.
  2. 02 Install & First Program A step-by-step setup guide for Python 3 on Windows, macOS, and Linux. Install the interpreter, set up VS Code, and write a working Python program in under ten minutes.
  3. 03 Syntax & Indentation Understand Python's syntax rules, the role of indentation, statements, comments, and the most common syntax errors that trip up new developers.
  4. 04 Variables & Naming Learn how Python variables work, the rules and conventions for naming them, how dynamic typing changes the rules you may know from other languages, and the naming mistakes to avoid.
  5. 05 Data Types An overview of every built-in data type in Python — int, float, str, bool, list, tuple, dict, set, and None — with examples and guidance on when to use each.
  6. 06 Numbers & Math A practical guide to integers, floats, arithmetic operators, operator precedence, the math module, and the floating-point gotchas every Python beginner should know.
  7. 07 Strings A thorough introduction to Python strings — creation, escape sequences, indexing, slicing, the essential methods, f-strings, and why strings are immutable.
  8. 08 Lists A complete beginner's guide to Python lists — creation, indexing, slicing, mutation, the essential methods, iteration patterns, and a first look at list comprehensions.
  9. 09 Tuples A practical guide to Python tuples — creation, the single-element gotcha, packing and unpacking, methods, and when to choose a tuple over a list.
  10. 10 Dictionaries A complete beginner's guide to Python dictionaries — creation, access, mutation, iteration, the essential methods, and the patterns that appear in nearly every real Python program.
  11. 11 Sets Learn how Python sets store unique values, the operations they support — union, intersection, difference — and when to choose a set over a list or dictionary.
  12. 12 Type Conversion A practical guide to converting between Python types — int, float, str, bool, list, tuple, set, dict — when conversions fail, and the common pitfalls to avoid.
  13. 13 Conditionals A practical guide to Python conditionals — if, elif, else, truthiness, conditional expressions, and the patterns that keep branching logic clean and readable.
  14. 14 Comparison & Logic A complete guide to Python's comparison and logical operators — equality vs identity, chained comparisons, short-circuit evaluation, and common pitfalls.
  15. 15 For Loops A practical guide to Python for loops — iterating over sequences, the range function, enumerate and zip, nested loops, and the idiomatic patterns you will use every day.
  16. 16 While Loops A clear guide to Python while loops — condition-driven iteration, break and continue, the else clause, infinite loops, and patterns for safe, terminating code.
  17. 17 Functions A practical guide to Python functions — defining with def, returning values, arguments and parameters, docstrings, and the habits that make functions worth reusing.
  18. 18 Default & Keyword Args A practical guide to Python function arguments — defaults, keyword arguments, *args, **kwargs, positional-only and keyword-only parameters, and the mutable default gotcha.
  19. 19 Scope & Globals A clear guide to Python variable scope — local, enclosing, global, and built-in names, the LEGB rule, and when to reach for the global and nonlocal keywords.
  20. 20 File I/O A practical guide to file I/O in Python — open modes, the with statement, reading and writing text and binary, working with paths, and handling common errors.