At My Fingertips

Rapid Playground

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 Policy • Platform Version 2fde300 (Fri, 19 Apr 2024 17:27:38 GMT)