Module 1: Python Fundamentals
Beginner 20 chapters
1. Introduction to Python
Learn what Python is, why so many beginners and professionals choose it, how a Python program runs, and how to write and run your first lines of code.
2. History and Features of Python
Follow the story of Python from its beginning with Guido van Rossum to Python 3 today, and learn the main features that make the language popular.
3. Applications of Python
Discover where Python is used in the real world, from websites and data science to automation, games and science, with tiny examples you can run.
4. Installing Python on Windows
Learn how to download Python from the official site, run the Windows installer safely, tick the PATH option, and check that the installation works from Command Prompt.
5. Installing Python on Linux and macOS
Check whether Python is already on your Linux or macOS computer, install a current version with the right tool, and learn the difference between python3 and python.
6. Installing and Using VS Code
Install Visual Studio Code, add the Python extension, pick an interpreter, and learn to write, run and debug a Python file inside the editor.
7. Python Interpreter and IDE
Learn what the Python interpreter does with your code, how to use the interactive prompt and run script files, and how to choose an IDE or editor for comfortable coding.
8. Writing Your First Python Program
Write, save and run your first complete Python program. Learn how print, input and variables work together and how to read your first error messages.
9. Python Syntax
Learn the basic grammar rules of Python: statements, lines, case sensitivity, keywords, identifiers, quotes and how to split long lines.
10. Python Comments
Learn how to write single-line, inline and multi-line comments and docstrings in Python, and how to use comments to make code easier to understand.
11. Python Indentation
Learn how Python uses indentation to group statements into blocks, how many spaces to use, and how to avoid the common IndentationError and TabError problems.
12. Python Keywords and Identifiers
Learn what keywords are, which words Python reserves, and the rules and style conventions for naming variables, functions and classes with identifiers.
13. Python Variables
Learn what a variable is in Python, how to create one with assignment, how to name it well, and how Python handles reassignment, multiple assignment and deleting names.
14. Constants
Learn how Python handles values that should not change: the UPPER_CASE naming convention, Final hints, immutable types, enums and frozen dataclasses.
15. Python Data Types
Meet the built-in data types of Python: int, float, complex, str, bool, list, tuple, set, dict and None, and learn how to check a type and tell mutable from immutable.
16. Type Checking
Learn how to find out what type a value has with type() and isinstance(), how to check several types at once, and how to write code that stays safe when the type is not what you expected.
17. Type Conversion
Learn how to change a value from one type to another with int(), float(), str(), bool() and friends, and how Python converts some values for you automatically.
18. Input and Output
Learn how programs talk to people: reading text with input(), converting it, and showing results with print() and formatted strings.
19. Print Function
Explore everything the print() function can do: several values, sep and end, escape characters, printing to other streams, and handy f-string tricks for debugging.
20. Basic Error Understanding
Learn to read a Python traceback, tell syntax, runtime and logic errors apart, recognise common error names, and handle errors safely with try and except.