Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

Python Testing and Project Tools

Check the report environment

Coding challenges

BOTIE

Return complete package rows whose installed label differs from reviewed. Read the two version columns, compare them as text, and keep the changed rows. A missing installation is shown as "not installed" and also needs attention.
Ready to test
0 passed · 0 failed · 2 not run

An empty floor. Start with the information your machine needs.

Received result

Your answer will arrive here.

Examples, experiments and workspace controls
Live values

Connect a tool's inputs to see what it produces. You can try a branch before connecting it to Result.

Try your own inputs

Use a copy of the example to try your own data. Keep the problem's assumptions in mind, and predict the effect of a change before checking the output. You can also add another branch to compare two ways of doing the calculation.

Start at an output arrow, then click or drag to an input. Drag empty space to pan. Delete removes a selection. Ctrl/Cmd+Z undoes a change.
Context for this challenge

Return complete package rows whose installed label differs from reviewed. Read the two version columns, compare them as text, and keep the changed rows. A missing installation is shown as "not installed" and also needs attention.

The report source stayed the same, but its installed environment changed.

Reuse the field readers and comparison from the alert tests. This time the two columns hold version labels. Keep the full package rows where they disagree.

Examples and results
Reviewed and installed package versions
  1. package
    sensor-reader
    reviewed
    "2.1"
    installed
    "2.2"
  2. package
    report-writer
    reviewed
    "1.0"
    installed
    "1.0"
Required result
  1. package
    sensor-reader
    reviewed
    "2.1"
    installed
    "2.2"
Reviewed and installed package versions
  1. package
    sensor-reader
    reviewed
    "2.1"
    installed
    "2.1"
  2. package
    report-writer
    reviewed
    "1.0"
    installed
    "1.0"
Required result
[]
Try a fresh construction

This clears this draft, including its undo history. Earlier successful attempts stay recorded. Build again without opening hints to record an independent attempt.

Stuck? Inspect a worked construction

The tools below form one possible solution. You can assemble it, follow its signals, and undo that change to return to your own construction.

Assumptions and test precision

This compares supplied version labels exactly. It does not install packages, resolve version ranges, or establish that matching versions work on the target machine. Numerical tests allow a difference of 0.001. Lists and structures must also have the right shape.

Version labels are not decimal numbers

This check uses the pieces from “Find the changed package”.

BOTIE

The recorded sensor-reader version is 1.10, while the installed label is 1.1. The report-writer labels both remain 3.0. Compare the labels as text.
Reviewed and installed package versions
  1. package
    sensor-reader
    reviewed
    "1.10"
    installed
    "1.1"
  2. package
    report-writer
    reviewed
    "3.0"
    installed
    "3.0"
Do the reviewed and installed sensor-reader labels match exactly?

Saving your prediction runs your current construction on these inputs and checks the earlier examples too.

Build a construction in the workspace above first. This case will test those pieces.

What should you run on the target machine after these labels agree?

Keep the reviewed environment beside the report and rerun its tests.

This compares supplied version labels exactly. It does not install packages, resolve version ranges, or establish that matching versions work on the target machine.

Continue the courseConfiguration and Secrets →
← Modules and Project Structure