#100DaysOfCode: Python Day 18
Turtle & The GUI
#100DaysOfCode Day 18
Yesterday I learned how to use the turtle library to make some cool drawings and artwork. The main outcome was actually learning how to read the documentation of a module and follow instructions.
- Documentation makes using modules easy to use
- Using the find function on a browser page can assist you in finding what you are looking for way faster on a large page.
Tuples are immutable which means they cant be changed after they created. hey carved in stone and are useful to use for values like constants in your program.
They are similar to list in syntax but use round brackets instead.
my_list = [1, 3, 5]
my_tuple = (1, 3, 5)
I had a lot of fun drawing cool things using the turtle library. This post is extremely short, but here are some of the challenges I was tasked with using the turtle library if you want to give it a go...
- Draw a Square
- Draw a Dashed Line
- Draw 3 Shapes
- Random Walk (increase the thickness of the line)
Want to stay up to date with my learning journey? Just sign up for my newsletter.
I write daily web development tips that help you become a more efficient developer. 👨💻⚡️
Nice! I'm dying to try the generative art option! This only inspired me too give it a try, looks like massive fun