CS1 24-Jan-2018

Lesson Name:

Programming Iterative Loops in Python

TEKS – §126.33 (Computer Science 1):

  • c.2 – Communication and collaboration. The student communicates and collaborates with peers to contribute to his or her own learning and the learning of others. The student is expected to:
  • c.2.A – create and properly display meaningful output
  • c.2.D – write programs with proper programming style to enhance the readability and functionality of the code by using meaningful descriptive identifiers, internal comments, white space, spacing, indentation, and a standardized program style
  • c.4 – Critical thinking, problem solving, and decision making. The student uses appropriate strategies to analyze problems and design algorithms. The student is expected to:
  • c.4.E – identify reusable components from existing code
  • c.4.H – identify and debug errors
  • c.4.I – test program solutions with appropriate valid and invalid test data for correctness
  • c.4.J – debug and solve problems using error messages, reference materials, language documentation, and effective strategies
  • c.4.U – demonstrate proficiency in the use of the relational operators
  • c.4.V – demonstrate proficiency in the use of the logical operators
  • c.6 – Technology operations, systems, and concepts. The student understands technology concepts, systems, and operations as they apply to computer science. The student is expected to:
  • c.6.O – choose, identify, and use the appropriate data types for integer, real, and Boolean data when writing program solutions
  • c.6.P – demonstrate an understanding of the concept of a variable
  • c.6.V – compare and contrast strongly typed and un-typed programming languages

Lesson Objectives:

  1. The student will demonstrate mastery of for loop programming in Python.
  2. The student will demonstrate mastery of do loop programming in Python.
  3. The student will demonstrate mastery of do while loop programming in Python.

Materials Needed:

  1. Repl.it Access

Description of Lesson:

Students will cover hands-on how to create a for, do, and do while loop in Python. Further discussion on benefits and pitfalls of each iterative looping structure will be discussed.

Grade(s):

  • Daily Grade – Guided Practice Lesson File

Leave a Reply

Your email address will not be published. Required fields are marked *