At My Fingertips

Documentation

Create a Roof

📖 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.

Loading...
Code is messed up?Always remember that if you edit the cell and you're stuck you can reset it to the original state by clicking this symbol reset symbol on the top right of the page!

🎉 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

Logo of PyTamaro

PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI

Privacy PolicyPlatform Version 0d7866a (Fri, 20 Dec 2024 07:46:38 GMT)