Day 19 of #100DaysOfPython Today was about instances, state, and higher-order functions. I built a Turtle Race Game using Python’s turtle module. I created multiple turtle instances, each with its own color and position, then made them race using random movement speeds until one wins. This project helped me understand: How different instances can be created from the same class How each instance maintains its own state (position, movement, etc.) How to use functions in a more flexible way when controlling behavior It was a fun way to see objects come to life and interact on the screen. Starting to think more in terms of objects and behavior, not just lines of code. #100DaysOfCode #100DaysOfPython #Python #OOP #PythonProjects #TurtleGraphics #LearningToCode #CodingJourney #BuildInPublic

To view or add a comment, sign in

Explore content categories