Lab 8: vPython and lists (Did you understand yesterday's class?)

  1. Using VPython, make a list of at least five objects, all of which are the same type, in a row and are random sizes
  2. Draw the objects in a line across the screen in the order they appear in the list.
  3. Wait a moment (call sleep, input, wait for a keystroke, etc).
  4. Reverse the list, without using the built-in reverse method. Do this by swapping the first and last item, then second and second to last, etc. Remember that you can use negative index values. Draw the list after each swap, and include a pause so you can see what happens.
This will look a lot like the demo from in-class on Monday 10/10.