Search⌘ K
AI Features

Challenge: Favorite Things

Explore how to create a list of your favorite things and use a for loop to automatically print descriptive sentences for each item. This lesson helps you understand storing multiple values and automating tasks with loops in Python programming.

We'll cover the following...

Lists let you store multiple related values under one name.
Loops let you do something with each value automatically.

In this challenge, you’ll use both together.

Your task:

  1. Create a list containing a few of your favorite things (like hobbies, foods, or activities)

  2. Use a for loop to go through the list

  3. For each item, print a sentence that mentions it

💡 Things to keep in mind:

  • Lists are written using square brackets []

  • A for loop gives you one item from the list at a time

  • The same print() statement will run once for each item

Example output (yours can be different):

One of my favorite things is reading.
One of my favorite things is coding.

When you click Run, your program should print one sentence per item in your list.

Python
# Write your code here.