At My Fingertips
Rapid Playground
In this activity you will compose a market stall, like those one can find in markets in towns around Switzerland and Europe.
Assume you have a friend who does not see the figure below:
Sure, you could say it's a market stall! But assume your friend is an alien and has not the slightest idea what a market stall is. Then you could describe it along the following lines:
At the top is an awning, consisting of dark and bright purple stripes. Each stripe is a vertical rectangle with a semicircle attached at the bottom. The stall has a brown table, almost as wide as the awning (it is two stripes less wide). The table has a thin lighter brown top, and a darker brown panel along the entire front. The stall is held together with a wooden bar on each side of the table, going from the very top (disappearing behind the awning) to the very bottom.
Implement the market_stall
function below, so it draws a stall like the one above.
Create auxiliary functions.
You can use the given colors and sizes (all the sizes are derived from the given height).
This activity has been created by LuCE Research Lab and is licensed under CC BY-SA 4.0.
Market Stall
PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI
Privacy Policy • Platform Version c08406b (Wed, 20 Nov 2024 12:30:00 GMT)