📖 In this activity, the roof function takes one argument (that must be a color!), and generates a graphic of a roof of the specified color.
📖 The code below creates a grey roof graphic and assigns the name my_roof to it. It then outputs the graphic, using show_graphic.

🎉 Well done! You are ready to go to the next avtivity!
This activity has been created by LuCE Didactics Innovation Team and is licensed under CC BY-SA 4.0.
Create a Roof


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)