Overview

In this week, you will build a trend tracker that scans recent games and finds hot streaks.

New Skills

  • Store data in lists
  • Use for loops to scan game logs
  • Use conditions (if/else) to make decisions
  • Track streaks with counters
  • Load and analyze CSV data

A list is a way to store multiple values in one variable. It’s like a container that keeps items in order—perfect for saving stats from several games.

Example:

recent_stats = [18, 22, 30, 15, 28]

A loop is a way to repeat code. In this project, a for loop lets you go through your list one item at a time and run the same code for each stat.

recent_stats = [18, 22, 30]

for stat in recent_stats:
    print(stat)

A condition is a true/false check. An if statement uses a condition to decide what to do.

stat = 30
hot_threshold = 25

if stat >= hot_threshold:
    print("Hot game!")
else:
    print("Not a hot game.")

A CSV file is a simple spreadsheet-style text file where values are separated by commas. Each line is usually one row of data.

date,stat
2025-01-03,18
2025-01-05,22

Discord

Make sure you have joined the course Discord so we can send you update and links.

>button: 💬 Join the Course Discord