CS1 16-Jan-2018

Lesson Name:

Casting Variables 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.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 casting variables as strings in Python.
  2. The student will demonstrate mastery of working with strings and substrings in Python.

Materials Needed:

  1. Repl.it Access

Description of Lesson:

Students will cover hands-on how to cast basic variables in Python and when casting may be necessary.

Grade(s):

  • Daily Grade – Guided Practice Lesson File

Leave a Reply

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