At My Fingertips
In this activity we will implement the double_black_diamond
function that recreates the following graphic.
The first thing we need is a rhombus
function. We have an activity that will guide you through the implementation of a rhombus
function, therefore we suggest solving that first, and copy-pasting your code in here.
Let's check how your code behaves by showing a black rhombus:
Now you are ready to implement the double_black_diamond
function, that returns two rhombuses next to eachother: use the rhombus
function that you implemented. Under the diamonds there should be a black label saying "EXPERTS ONLY" in Fira Sans font. Use the pytamaro text function to generate a text graphic.
This activity has been created by LuCE Research Lab and is licensed under CC BY-SA 4.0.
Double Black Diamond
PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI
Privacy Policy • Platform Version c3a8286 (Mon, 14 Oct 2024 13:30:28 GMT)