Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

  • Understand Python's history and philosophy
  • Set up your Python development environment
  • Write and execute your first Python programs
  • Master Python syntax fundamentals
  • Work with variables and basic data types
  • Perform basic input and output operations

📂 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

  • Python 3.8+ installed
  • A code editor (VS Code recommended)
  • Terminal/Command Prompt access

🔗 Next Steps

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