top of page

Lists

This page features 3 levels of projects to teach you how to use lists (arrays) in Python:

1. Creating and managing simple lists of items
2. Performing calculations and analysis using lists of numbers
3. Combining lists, numbers, and loops to organize and analyze larger sets of data

Level 1: Favorite Things List

Goal: Ask the user for some of their favorite things (foods, animals, places, games, etc.), store them in a list, and then display the list in nice, numbered format.

Level 2: Score Analyzer

Goal: Let the user enter test scores, store them in a list of numbers, and then calculate the average, highest, and lowest scores.

Level 3: Weekly Data Tracking

Goal: Track something over a week (like sleep, homework, or screen time, etc.) using a list, then compute totals, averages, and find the best and worst days.

Challenge Questions

Level 1: 

What if the user doesn't give a valid answer (not yes/no)? Add code to fix this.

Add a second condition: "Is someone in the room?"

Level 2: 

Let the user pick what unit they want to convert to/from, using booleans/conditional statements.

Also try to add the reverse of each!

Level 3: 

Add feedback: show the percentage score, congratulate the user if they got a perfect score.

Add a bonus question at the end if the user got everything right.

bottom of page