Week 7 ยท 45-60 min

Lists

Week Summary

A quick preview of the main ideas in this week before you begin the slides.

  • What Is a List?
  • Accessing List Items
  • Modifying Lists
  • Looping Through Lists

Glossary

Review these key terms before starting this week. They are kept simple so students can learn the new vocabulary before moving into the slides.

What Is a List?
What Is a List?
Accessing List Items
Accessing List Items
Modifying Lists
Modifying Lists
Slide 1๐Ÿ’ก

What Is a List?

Learning goal

Store and manipulate collections of data using lists.

Read one card at a time. Focus on the main idea first, then look at the visual on the right to help it stick.

A list stores multiple values in one variable.

Lists use square brackets, such as [1, 2, 3].

They can hold numbers, strings, or mixed types.

List items are ordered and can be changed.

Lists are useful for grouping related data.

Remember

Lists let one variable hold many related pieces of information.

What Is a List?

What Is a List?

Slide 1 of 8

Use arrows or dots to move through the lesson

Practice

  1. Write 2-3 sentences about what you learned this week.

Coming Next Week: Next: Functions