Optional: Automation Test Problem

Now that you understand the basics of lists and custom blocks, feel free to try our optional test problem. 

Create a custom block labeled “CB Line of Spheres” that creates a line of spheres along the z axis. The user should be able to define the starting location, the number of spheres, the radius, and the increment.

Once you create this CB, test your list manipulation skills by importing it into another notebook with the inputs shown above. Then… 

  1. Select the 3rd  to the 8th items in the list 
  2. Remove the 4th and 5th items in the list
  3. Select the last element in the list.

Estimated Time to Complete: 25 minutes