Skip to content

A3 - Defining Subprograms

Run the update to get the template for this assignment. Take some time to try to understand how each of the subprograms work in a3-examples.py, and how they are called.

In a3.py, create your own three subprograms that create simple drawings. Call each of them at least twice, each time starting from a different location.

Extensions

Creating subprograms with the following features would be considered extensions:

  • a subprogram that accepts arguments, as demonstrated in the draw_rectangle example.
  • a subprogram that calls other subprograms, as demonstrated in the draw_house example.