Fun with Flags – Part 2: more flags

Step 2 – Turtle challenge 2.1 & 2.2

Time for two turtle challenges.

Challenge 2.1 – Three-striped flags

Lots of flags are similar to the Lithuanian flag.

Your challenge is to draw at least one of them.

Flag of Germany Flag of Estonia Flag of Yeman Flag of Gabon

The flags are, from left to right: Germany; Estonia; Yemen; and Gabon.

Here's a full set of Python turtle colours (opens in a new tab).

Estonia is on the Baltic Sea, Yemen is in East Africa and Gabon is a country in West Africa.

Challenge 2.2 – Irregular three-striped flags

There are other flags with three stripes where the stripes aren't equal sized. This means you need to be clever about the width of each block of colour.

For example, the Latvian flag has three stripes, but the white stripe in the middle is narrower than the two red stripes. The two red stripes should be twice as wide as the white stripe.

Remember, your basic flag is 180 steps wide and 120 tall. The red stripes on the latvian flag would need to be 2/5ths of 120 and the white stripe would be 1/5th of 120. See if you can figure out the right widths – use a calculator if it helps!

Your challenge is to draw at least one of these flags.

Flag of Latvia Flag of Colombia

The flags are, from left to right: Latvia and Colombia.

Here's a full set of Python turtle colours (opens in a new tab).

Latvia is also on the Baltic Sea. Colombia is in South America. The yellow stripe on the Colombian flag should be twice the width of the other two stripes.