At My Fingertips

Documentation

Double Black Diamond

In this activity we will implement the double_black_diamondfunction that recreates the following graphic.

double black diamond

The rhombus

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.

Loading...

Let's check how your code behaves by showing a black rhombus:

Loading...

The double black diamond

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.

Loading...

This activity has been created by LuCE Research Lab and is licensed under CC BY-SA 4.0.

Double Black Diamond

Logo of PyTamaro

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

Privacy PolicyPlatform Version 1cd5229 (Tue, 05 Nov 2024 16:55:57 GMT)