Extend the program in the file assign05start.py by implementing the four new commands:
shapes
Prints a descriptive list of all the shapes currently in the drawing, numbered from 1
to however many shapes are currently in the drawing, with the least-recently
drawn shape as number 1 and the most-recently drawn shape as the last number
delete
Inputs a valid shape-number (as it would be listed by the shapes command) and
removes that shape from the drawing
lift
Inputs a valid shape-number (as it would be listed by the shapes command) and
raises that shape up so that it’s drawn in font of all the other shapes in the drawing
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 1 | 2 | 3 | 4 | 5 |