# Python Basics > Ninth graders write their first lines of Python — print() shows text, a # starts a comment, and Python is case-sensitive, so Print and print are not the… **Computer Science** | **Grade 9** *A free lesson plan from K12 Academics. Source page: https://lessonplans.k12academics.com/k12-lesson-g9-cs-python-basics.html* Ninth graders write their first lines of Python — print() shows text, a # starts a comment, and Python is case-sensitive, so Print and print are not the same. They run a short program, then modify and extend it. **Copy link** works with Canvas, Schoology, Moodle and any other LMS — paste it in as a resource or assignment. ## Everything you need before the bell rings ### Learning Objectives Students will be able to… - Use **print()** to output text. - Add **comments** with #. - Respect **case sensitivity**. - Run a short program. What are the first rules you need to write and run Python? ## Python Basics Check Project each item and have students answer about writing Python. ## 55 minutes, five moves Tap any phase to open the teacher moves and student actions. ### Hook — Hello, World What is the smallest program that actually does something? #### 👩‍🏫 Teacher Moves - Show a print line. - Ask what each part does. - Set the goal. #### 🎒 Student Actions - Read. - Guess. - Get ready. ### Use — Python Basics Students run code. #### 👩‍🏫 Teacher Moves - Send students to Python Basics Check. - Note print(), #, case sensitivity. - Run a print line. #### 🎒 Student Actions - Answer. - Note it. - Run it. ### Modify — Change the Output Students modify. #### 👩‍🏫 Teacher Moves - Change the text inside print(). - Add a comment above it. - Add a second print line. #### 🎒 Student Actions - Change. - Comment. - Add. ### Create — Make Your Own Students create. #### 👩‍🏫 Teacher Moves - Write a 3-line greeting program. - Comment what each line does. - Run it and fix any typo. #### 🎒 Student Actions - Write. - Comment. - Run. ### Reflect — Reflect Students close. #### 👩‍🏫 Teacher Moves - Say what print() does. - Say what # does. - Complete the exit ticket. #### 🎒 Student Actions - Say it. - Say. - Complete the exit ticket. ## Built to the standards you report on Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students. Iteratively develop programs using control structures. Decompose problems into smaller components. Evaluate and refine computational artifacts. Build and test solutions in code. ## One lesson, every learner ### Multilingual Learners - Annotate a sample program. - Say code aloud in English. - Pair-program. ### Support & Access - One print line to start. - Copy then change text. - Checklist for typos. ### Stretch & Extend - Use variables in print(). - Combine text with +. - Add user input(). ### What to gather - 📽️Screen / board - 🐍Python / editor - 💻Python Basics Check - 📃Sample program - 📓Notebooks - 🎫Exit-ticket slips ### Key terms - **print()**: a command that displays output - **string**: text, written in quotes - **comment**: a # line Python ignores - **syntax**: the rules for writing valid code - **case-sensitive**: capitals matter (Print not print) - **run**: to execute a program - **output**: what a program shows - **editor**: a tool for writing code ## Exit Ticket Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students. ### Reflect: Python basics. Have students write and run a 3-line program with a comment. A printable Python basics worksheet is in the Computer Science library. ## Check your understanding **1. What does “print()” mean?** - to execute a program - a command that displays output *(correct)* - a tool for writing code - text, written in quotes “print()” means: a command that displays output **2. Which word means: “text, written in quotes”?** - string *(correct)* - syntax - editor - output “string” means: text, written in quotes **3. What does “comment” mean?** - to execute a program - a # line Python ignores *(correct)* - the rules for writing valid code - text, written in quotes “comment” means: a # line Python ignores **4. Which word means: “the rules for writing valid code”?** - syntax *(correct)* - string - output - comment “syntax” means: the rules for writing valid code **5. What does “case-sensitive” mean?** - text, written in quotes - a # line Python ignores - a tool for writing code - capitals matter (Print not print) *(correct)* “case-sensitive” means: capitals matter (Print not print) **6. Which word means: “to execute a program”?** - comment - case-sensitive - run *(correct)* - editor “run” means: to execute a program ## Printable worksheet --- Full lesson page: https://lessonplans.k12academics.com/k12-lesson-g9-cs-python-basics.html All lessons: https://lessonplans.k12academics.com/