Lesson 1 – Hello Python and Environment (1.5 to 2 hours practical lesson plan, no tables)
3 minutes pre-class check
-
Computer can open VS Code
-
Terminal input python –version shows 3.x
-
GitHub account is logged in
Class timeline (90 min)
0–10 min Icebreaker Teacher says: Today we will use just 5 lines of code to make a little turtle draw a square. On-site question: Has anyone seen a Python turtle? (to liven up the atmosphere)
10–20 min Theory Flash
-
REPL: The >>> that appears after typing python in the terminal
-
Script: Write code into a .py file and run it with python xxx.py
-
VS Code Debug Button: F5 to run, F10 to step through, breakpoints on the left
20–30 min Hands-on Environment Students follow along:
-
Open VS Code → Create folder lesson1 → Create file hello.py
-
Type print(“Hello Python”), press Ctrl + F5 to run
-
In the terminal, type python and press Enter to enter REPL, type print(“REPL”) to experience instant feedback
30–55 min Mini Project: Turtle Drawing a Square Steps: a) Create turtle_square.py b) Type line by line: import turtle as t for _ in range(4): t.forward(100) t.right(90) t.done() c) After saving, right-click Run Python File, a window pops up showing a black square Teacher explains line by line: import imports the library, for loop runs 4 times, forward moves forward, right turns right
55–70 min Classroom Challenge Change the square to red: Add a line t.color(“red”) before the for loop, run again to see it turn red immediately. Let students change the color themselves and take a screenshot.
70–80 min First Experience with Git Terminal sequence: cd lesson1 git init git add . git commit -m “feat: turtle red square” (Teacher demonstrates on-site, students are not required to register remotely, will follow up after class)
80–90 min Summary & Homework Assignment
-
Remember three things: REPL interaction, script files, VS Code debugging
-
Homework:
-
Change turtle_square.py to blue and submit to GitHub
-
Write one sentence in README: First lesson turtle work, attach a screenshot
5 minutes post-class Q&A
-
Can’t close the turtle window? Ctrl + C or click the close button
-
Color spelling must be lowercase: red, blue, green
-
Next class preview: Variables and self-introduction cards
Class dismissed!