At My Fingertips
Rapid Playground
In this activity you will compose a market stall, like those used for markets in the city of Bellinzona, in the Swiss Canton of Ticino.
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 those words mean. How would you describe it then?
Implement the bellinzona_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).
Did you wonder why the stalls have this kind of awning, with bands with widths of a quarter, a half, and a quarter?
The colors are the colors of Canton Ticino, the state of which Bellinzona is the capital.
The widths of the bands are perfect for when you put multiple stalls next to each other, like you usually see it in markets.
This activity has been created by LuCE Research Lab and is licensed under CC BY-SA 4.0.
Bellinzona 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)