What is Python: Hands On

In this part 2 lesson, you will no get to see, modify, and create your own code! Think you can write the code to say your name, or your friends name, or even create a video game? The world is your oyster with Python!

National Standards Alignment

csta 3A-AP-13 3A-AP-14 3A-AP-15 3A-AP-21 3A-CS-01 3A-CS-02 3A-CS-03 3A-DA-09 3A-IC-29 3A-NI-06
iste ISTE-1d ISTE-2a ISTE-2b ISTE-4a ISTE-4c ISTE-4d ISTE-5a ISTE-5b ISTE-6a ISTE-6b

OVERVIEW

Activity Overview:

In this part 2 lesson, you will no get to see, modify, and create your own code! Think you can write the code to say your name, or your friends name, or even create a video game? The world is your oyster with Python!

Meta description

  • Subject Area: Computer Science, Technology
  • Grade Level : 9-12
  • Computer Science Domains:
    • Computing Systems
    • Algorithms and Programming
  • Computer Science Principles:
    • Creating Computational Artifacts
    • Testing and Refining Computational Artifacts
    • Communicating About Computing
  • Materials:
    • Desktop with IDE.

Lesson Plan

Overview

In this part 2 lesson, you will no get to see, modify, and create your own code! Think you can write the code to say your name, or your friends name, or even create a video game? The world is your oyster with Python!

ASSESSMENT PRE/POST-TEST

  1. Sonya wants to write a program to pack her suitcase automatically. Describe how Sonya should use for/while loops and/or if/else statements to write code for the following: a. Packing a number shirts (num_shirts) into her suitcase. b. Packing a number pairs of pants (num_pants) if the temperature is less than 50 degrees, otherwise packing a number pairs of shorts (num_shorts).

  2. Why might a computer need to organize variables/objects into specific data types/categories?

OBJECTIVES

Students will be able to - Identify, modify, and create working code in Python.

CATCH/HOOK

The hook is after going through the lesson/lecture, students will have desktops available to install their own IDE and provided scripts to play around with. They will be encouraged to try things out and ask questions, let the imagination run.

ACTIVITY INSTRUCTIONS

After the lecture is finished, students will login to desktop environments in the classrooms to install a open source IDE such as VSCodium, grab the premade scripts and code to run and go over, and then create their own code from scratch with assistance from their peers and instructor (me)

Supplements

Any items in this section are the property & under the license of their respective owners.

REVIEW

After everyone has had the chance to play around and get some working code, we will review what was learned and start asking questions about the practical applications of Python and other coding languages, the idea being that we can then lead into a possible long term project of making their ideas into reality. Students will also take the pre/post questions again and see if what they learned has stuck or if there are any issues in comprehension.

STANDARDS

TypeListing
CS DomainsComputing Systems, Algorithms and Programming
CS PrinciplesCreating Computational Artifacts, Testing and Refining Computational Artifacts, Communicating About Computing