At My Fingertips
Rapid Playground
📖 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 0d7866a (Fri, 20 Dec 2024 07:46:38 GMT)