Fun with Flags – Part 3: flag mania

Code helper imageStep 4 – Drawing semi-circles

As well as drawing whole circle, it's also possible to draw a semi-circle in Python.

You'll need this for the next challenge...

The code for this is quite easy:

  1. Use the code in the screenshot to draw a semi-circle on a flag

    The second number in the circle line is 180°. There are 360° in a circle, so 180° is half a circle

  2. Run your code to see what happens
  3. Try changing the 180 to 90. What happens?
  4. Now try changing is to 270. What happens?
  5. And try a number like 35

This will work for any number between 1 and 359.

Higher numbers work best to show what happens.