#100DaysOfCode: Python Day 18

#100DaysOfCode: Python Day 18

Turtle & The GUI

Subscribe to my newsletter and never miss my upcoming articles

#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.

Lessons

  1. Documentation makes using modules easy to use
  2. 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

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...

  1. Draw a Square Screenshot 2021-05-29 at 21.55.09.png
  2. Draw a Dashed Line Screenshot 2021-05-29 at 21.55.44.png
  3. Draw 3 Shapes Screenshot 2021-05-29 at 21.56.16.png
  4. Random Walk (increase the thickness of the line) Screenshot 2021-05-29 at 21.57.34 1.png
  5. Spirograph Screenshot 2021-05-29 at 21.51.53.png

Want to stay up to date with my learning journey? Just sign up for my newsletter.

#python#python3#python-beginner#python-projects#100daysofcode
 
Share this