Draw snowflakes with code using Python Turtle. This is great fun and a great way to start learning how to code with Python. In this resource you will learn how to use a sequence of instructions to make shapes, how to use loops to repeat instructions, and how to store information in variables.
WHAT YOU WILL NEED
HARDWARE
A Raspberry Pi with an SD card loaded with Raspbian
SOFTWARE
Python 3
STEPS
How to draw with Python Turtle
How to turn with Python Turtle
Using loops to create shapes
Creating spiral patterns
Changing the pen colour randomly
Using a function to draw a snowflake
WORKSHEET
Worksheet
(Optional) Final version of Python code snowflake.py
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!
Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!
Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi
EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey