LoslegenKostenlos loslegen

Getting things in order

In DataLab, the sequence in which cells are run is crucial. Each cell depends on the variables and outputs generated by previous cells. Running cells out of order can lead to unexpected results or errors.

In this exercise, you’ll experiment with executing cells in different orders to see how it affects the output.

Diese Übung ist Teil des Kurses

Introduction to DataLab

Kurs anzeigen

Anleitung zur Übung

  • Execute all cells in the notebook using the Run All button, observing the outputs.
  • Press run on each cell in different orders, again observing the outputs.
  • Alternate between the cell labeled as 'Step 2' in the comments and the cell labeled as 'Step 3' a few times, before running the cells labeled 'Step 4' & 'Step 5'.'
  • Order the cells so the cell labeled 'Step 3' comes after 'Step 2' and hit Run All to check everything works.

Interaktive Übung

In dieser interaktiven Übung kannst du die Theorie in die Praxis umsetzen.

Übung starten