Please enable JavaScript to use CodeHS

Utah Introduction to Python 2

Description

In this lesson, students learn how to use the len function to determine the length of a list.

Objective

Students will be able to:

  • use the len function to determine the number of items in a list
  • use the len function to access list items
Description

In this lesson, students learn how to combine their knowledge of for loops and the len function to loop over items in a list one by one.

Objective

Students will be able to:

  • Use for loops to access items in a list one by one
Description

In this lesson, students learn another way to loop over items in a list one by one.

Objective

Students will be able to:

  • Use the in keyword to access items in a list one by one
Description

In this project, students work with a partner to create an interactive to-do list. They will follow scaffolded steps, but will also be given the opportunity to include some of their own ideas and design and will apply what they previously learned about working successfully with another student while programming.

Objective

Students will be able to:

  • Practice concepts and skills they should be comfortable with to create a project with a partner
  • Gain experience programming with a partner
Description

In this lesson, students review content with a 10 question End-of-Unit Quiz.

Objective

Students will be able to:

  • Prove their knowledge of the following commands and concepts through a multiple choice quiz:
    • Finding the length of a list using the len function
    • Looping over a list using index values with the range keyword
    • Looping over items in a list using the in keyword