A collection of Python Turtle Graphics
This repository is for beginners interested in learning Python, in a fun interactive way.
Goals: To create an Open Source Project where anyone can contribute their design patterns or problem sets.
If you feel like contributing just open a PR, or contact [email protected] with any questions
- Basic
- Colors
- Advanced
import turtle # import the turtle module
wn = turtle.Screen() # create the screen
wn.bgcolor("lightgreen") # sets background color of screen
alex = turtle.Turtle() # create your turtle named => alex
alex.color("red") # set turtle line color to red
alex.forward(100) # move turtle forward 100 pixels
alex.left(90) # turn turtle 90degrees to the left
alex.forward(100) # repeat ^ steps 3 more times
alex.left(90)
alex.forward(100)
alex.left(90)
alex.forward(100)
alex.left(90)
wn.exitonclick() # Allows user to exit the turtle window on click
Using the turtle
module try to draw the following [Python Docs]
Problem I blocks.py
Problem II squares-in-squares.py
Problem III two-spirals.py
Problem IV five-stars.py
Problem V odd-stars.py
Problem VI wagonwheel.py
Using a 4-square
Draw this pattern
Problem VII negative-chart.py
- Coming Soon
- Coming Soon