Challenge: Favorite Things
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:
Create a list containing a few of your favorite things (like hobbies, foods, or activities)
Use a
forloop to go through the listFor each item, print a sentence that mentions it
💡 Things to keep in mind:
Lists are written using square brackets
[]A
forloop gives you one item from the list at a timeThe 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.
Challenge: Favorite Things
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:
Create a list containing a few of your favorite things (like hobbies, foods, or activities)
Use a
forloop to go through the listFor each item, print a sentence that mentions it
💡 Things to keep in mind:
Lists are written using square brackets
[]A
forloop gives you one item from the list at a timeThe 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.