This module covers the fundamental building blocks of Python programming. By the end of this module, you will understand how to write, run, and structure basic Python programs.
| File | Topic | Description |
|---|---|---|
| hello_world.py | First Program | Your first Python program |
| variables.py | Variables | Variable assignment and naming |
| operators.py | Operators | Arithmetic, comparison, and logical operators |
| input_output.py | I/O Operations | Input and output basics |
| comments.py | Documentation | Comments and docstrings |
import this
# Beautiful is better than ugly.
# Explicit is better than implicit.
# Simple is better than complex.
# Complex is better than complicated.
# Readability counts.
variable and Variable are different# for single-line comments# Interactive mode
python
# Script mode
python script_name.py
# With specific version
python3 script_name.py
2-3 hours for complete beginners
After completing this module, proceed to 02-data-types to learn about Python’s built-in data types.