Find the gap between layers

Here's how I went about the exercise from the last section.

Exercise 12: Find the horizontal gap between layers

  • Create the function find_between_layer_gap().
  • Using the node image width and the number of layers, calculate the horizontal gap between layers.
  • Update the parameter dictionary.
  • Print the result to the console.

Feel free to use my solution to the last exercise as a starting point:

Ready? Go for it.