In this activity we introduce the wall function. You will use it to build your castle!
đ The wall function takes three arguments!
â ď¸ These are the arguments needed by the wall function, in order:
The first argument should be the color of the wall
The second argument indicates whether the wall has borders or not (using either borders or no_borders)
The last argument should be one of the wall properties imported in lines 5 and 6: bricks, ivy, crack, door, double_door, window, rounded_window, or nothing.
If you look carefully at the code at line 9 and compare it with the graphical output, it makes sense, doesn't it?
= with wall(pink, borders, ivy)
đ That's awesome! You will use this wall function to generate pieces to build your castle!
This activity has been created by LuCE Didactics Innovation Team and is licensed under CC BY-SA 4.0.
Create a Wall


PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI
Privacy Policy ⢠Platform Version 3ec0cab (Tue, 28 Oct 2025 16:56:29 GMT)