Python-Learning-Course

Module 01: Python Basics

📋 Overview

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.

🎯 Learning Objectives

📂 Module Contents

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

📖 Quick Reference

Python Philosophy (The Zen of Python)

import this
# Beautiful is better than ugly.
# Explicit is better than implicit.
# Simple is better than complex.
# Complex is better than complicated.
# Readability counts.

Basic Syntax Rules

  1. Indentation matters - Use 4 spaces for each level
  2. Case-sensitive - variable and Variable are different
  3. No semicolons needed - One statement per line
  4. Comments - Use # for single-line comments

Running Python

# Interactive mode
python

# Script mode
python script_name.py

# With specific version
python3 script_name.py

⏱️ Estimated Time

2-3 hours for complete beginners

✅ Prerequisites

🔗 Next Steps

After completing this module, proceed to 02-data-types to learn about Python’s built-in data types.