DarkMind Ltd logo

CodeNova

Python Cards Adventure

Pack 7 / Pre-pandas Data Thinking

counts, averages, aggregation

Lesson pack7-3

counts, averages, aggregation

not started

Hook

Raw data is messy. Summaries help you see the bigger picture.

A count tells you how many items matched.

A total adds values together.

An average is total divided by how many values there are.

Mini Challenge

Count how many scores are 85 or higher, then print the final count.

Full lesson mode with normal detail.

Code Lab

Try it now

Output updates below

Output

87.0

Run the code, tweak it, then beat the challenge.