Loading
0x00Lesson 1 of 5

Start with a data question

Turn a broad curiosity into a question that data can help answer.

12 min 3-question quiz 1 code exercise
By the end of this lesson you can
  • State a measurable question and identify the observations and variables needed to investigate it.

Data science combines domain knowledge, programming, statistics, and communication to answer questions with data. Begin by making the question specific: what outcome are you trying to understand, for whom, and over what period? Then identify the unit of observation (such as one trip or one customer) and the variables that describe it. A dataset can reveal patterns, but a pattern alone does not prove that one variable caused another.

analysis.py
trip_minutes = [12, 18, 9, 21]
print("trips:", len(trip_minutes))
print("minutes recorded:", sum(trip_minutes))
Output
trips: 4
minutes recorded: 60

A clear question guides what you collect and how you analyze it. Check who or what is missing from the data, how each field was measured, and whether the time period represents the situation you care about.

Key takeaways

  • State a measurable question and identify the observations and variables needed to investigate it.

  • Check how the data was collected before drawing conclusions.

  • Explain important assumptions and limitations.

Lesson quiz

3 questions · pass with 3 correct · up to 50 XP

Passing this quiz completes the lesson and keeps your streak going. Questions you miss come back in review sessions later.

Practice: write Python

Write Python in the editor and run it against sample inputs. Python runs locally in your browser using a WebAssembly runtime.

Exercise 1

Count observations

+25 XP

Read one JSON array of numeric trip durations and print the number of observations.

  • Four trips
  • One trip
main.py
Loading editor…

Python runs in a sandboxed browser worker with a 60 second time limit. Its runtime loads from the Pyodide CDN; your code stays in this browser.

Questions about this lesson

Stuck? Ask. Figured something out? Share it. Explaining is one of the best ways to learn.

Loading posts…

Did you like the lesson? 😆👍
Consider a donation to support our work: