0–5 min
Real Hook
5–25 min
Core Concept
25–45 min
Live Coding
45–55 min
You Code It
55–60 min
Cheat Sheet
🔥 Real-World Hook (0–5 min)

Imagine 5 developers all editing the same app.py on WhatsApp. Priya adds login. Ravi adds payment. Ravi sends his file — Priya overwrites it. Ravi's payment feature is gone forever.

This happened at a Chennai startup in 2022 — they lost 3 weeks of work. Git is the solution. And Python's virtual environment (venv) means "it works on my machine" stops being an excuse forever.

⚙ What You Install Today (5–25 min)

💡 The 4 Tools

Python 3.12 — The language. Run python --version to check.
VS Code — Editor. Add Python + Pylance extensions.
pip — Python's package manager. Like npm for JavaScript, Maven for Java.
venv — Virtual environment. Each project gets its own isolated Python world. No version conflicts.

💻 Live Demo — First Python Project (25–45 min)

# Step 1: Create project folder
mkdir my-first-project
cd my-first-project

# Step 2: Create virtual environment (isolated Python for this project)
python -m venv venv

# Step 3: Activate it (Windows)
venv\Scripts\activate

# Step 4: Install a package (requests — for calling APIs)
pip install requests

# Step 5: Save your dependencies
pip freeze > requirements.txt   # like package.json for Python

# Step 6: Git setup
git init
git add .
git commit -m "first python project"

🐍 Your First Python Program — Hello, Real World

# hello.py — runs top to bottom, no main() needed

name = "Priya"
age  = 21

# f-string: embed variables directly in the string
print(f"Hello, {name}! You are {age} years old.")

# Function — def, not public void
def greet(name, age=18):  # age has a default value
    return f"Hi {name}, you are {age}"

print(greet("Ravi", 22))
print(greet("Anita"))  # uses default age=18
🎯 You Code It (45–55 min)
  1. Create folder my-portfolio, create and activate a venv
  2. Create main.py — print your name, city, and 3 goals for this internship using f-strings
  3. Add a function introduce(name, role) that returns a formatted introduction string
  4. Run git init, then git add . then git commit -m "first commit"
  5. Create a GitHub repo and push it — git push -u origin main
  6. Show the instructor: Your GitHub repo URL

📄 Day 1 Cheat Sheet — Python Setup & Git

Virtual Environment

python -m venv venvCreate venv
venv\Scripts\activateActivate (Windows)
source venv/bin/activateActivate (Mac/Linux)
pip install packageInstall package
pip freeze > requirements.txtSave deps
pip install -r requirements.txtRestore deps

Git Daily Workflow

git pullGet latest
git add .Stage all
git commit -m "msg"Save snapshot
git pushUpload
git statusWhat changed?
git log --onelineHistory

Python Basics

name = "Priya"String variable
age = 21Integer
f"Hello {name}"f-string
def greet(name):Function
return valueReturn
print(x)Output

.gitignore for Python

venv/Virtual env
__pycache__/Compiled files
*.pycBytecode
.envSecret keys
.DS_StoreMac metadata
*.sqlite3Local DB file