Code up the constants

Now finally to creating some code.

The first step is to code the constant parameters that we just used to define the locations of all the elements in the visualization.

You can create these directly as script-level constants. The derived parameters and calculated parameters will get filled in later, so you can hold off on those.

Exercise 1: Add constant parameters

  • Code constant parameters as global constants.
  • Add a print statement to main() showing the value of one of them.

Here's a stub to start from: nn_viz_00.py

After you've taken a shot at coding them up, start the next lecture, and I'll walk you through what I did.

Ready? Go for it.

Discussion

0 comments