Learn 1: The Notebook

5. Variable Container Class

In this mission we will be creating a simple container class to carry all our variables around in, as well as the robot and sensor objects that we’ve initialized. This makes declaring relevant objects and variables as global within our function definitions much simpler.

In this cell we have provided an empty class structure within which you will be declaring and initializing all your program’s objects and variables.

In computer science, a container class is a collection of other objects. In other words, it stores objects in an organized way. Think of putting loose LEGO bricks inside a plastic container to make them easier to carry and store.