Create kaleidoscopic spirals using Python Turtle. Learn how to think in sequences, use different sorts of loops and choose colours using RGB values. This is a great stepping stone from visual programming languages like Scratch to the text-based environment of Python.
Digital pictures out of code like this one:
By making spirals with code you will learn how to:
Choose colours using RGB values
Use for loops to repeat instructions and create spirals
Use the modulo operator to rotate through colours
Use while loops to create long lists of colours
A computer or tablet capable of accessing the online interactive Python environment called Trinket. You can create a trinket.io account using your google school account; or
If you don’t want to create an account you can use the embedded interactive trinket below to run code and see what happens; or
You can use a computer that has the Python programme installed.
Sign in to your trinket.io account, click on your name and then select ‘New Trinket’ and ‘Python’ from the drop-down menus.
Use this link to go to the Code Club online project: projects.raspberrypi.org/en/projects/turtley-amazing
Follow each step in the project, type code into your own trinket. You can look at the embedded trinket below for help if you get stuck.