Python Turtle for Computer ScienceMaths and Computer Science are often taught very separately, and yet they make excellent companions. Writing a program to explore a topic from maths can really help to understand the topic deeply as well as providing a great opportunity to practice your coding skills.

Here’s a challenge: use the Python Turtle Module as described here, to draw a sector of a circle given a radius and an angle. The result should look something like this:

Online Python lessons - circle sector

Here’s some skeleton code to get you started:

Enjoy, and I’ll post a solution in a few days.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Get the code for the classic Retro Alien Blitz Game using Python Turtle Graphics when you join our mailing list