Programming Trees in Python! (with the turtle graphics library) @KeithGalli
Programming Trees in Python! (with the turtle graphics library)  @KeithGalli
Uploaded December 2019 | Updated November 2026, 3 hours ago
Link to donate: teamtrees.org
Source code: github.com/KeithGalli/TeamTrees

In this video, we code up some cool tree animations using the python turtle library to support the #TeamTrees movement! :)

We start off with some basics defining a few different functions to build up to a draw_tree function. Then we look at how you can clean up that base code using a Tree Class. Finally, we take our simple tree and replicate it many times to create some cool artwork.

I'm going to post a part 2 in a couple days where I walk through using recursion to draw some more trees.

Watch Part 2!!
youtu.be/VUYPWxTe4Nw

Python Turtle Graphics Library Tutorial:
youtu.be/pxKu2pQ7ILo

Turtle graphics documentation:
docs.python.org/3.3/library/turtle.html?highlight=turtle

Thanks for watching everyone!

Thanks @MarkRober & @MrBeast for all your efforts towards organizing this movement!! :)

----------------------------
While I was working on this video, I stumbled into some other Coding YouTubers who made cool videos for TeamTrees. If you're looking for similar content, check out!

@The Coding Train : youtube.com/playlist?list=PLRqwX-V7Uu6bxNsa_3SfCPyF9Md9XvXhR
@John Fish : youtu.be/SNdtMjkRVrU

----------------------------
Follow me on Twitter: twitter.com/keithgalli
Follow me on Instagram: instagram.com/keithgalli

Join the Python Army to get access to perks!
YouTube - youtube.com/channel/UCq6XkhO5SZ66N04IcPbqNcw/join
Patreon - patreon.com/keithgalli
Programming Trees in Python! (with the turtle graphics library)For Loops & While Loops in Python - Beginner Python Tutorial #5 (with Exercises)Quickest Ways to Win at Connect 4!Math & Variables in Python - Beginner Python Tutorial #1How to Prepare for a Programming Interview! (Tips & Tricks)Ask me anything! (data science, LLMs, landing a job, and more)The Best Strategy to Win at Connect 4! (Odd Even Strategy)5 Jupyter Notebook Tips & Tricks to Improve your Data Science Workflow!Lists & Tuples in Python - Beginner Python Tutorial #4Introduction to Neural Networks in Python (what you need to know) | Tensorflow/KerasHow to Schedule & Automatically Run Python Code!Can You Solve These 3 Data Analysis Puzzles? (AnalystBuilder & Python Pandas)
Keith Galli |

Programming Trees in Python! (with the turtle graphics library)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER