Last active
September 19, 2022 13:09
-
-
Save cibofdevs/8bc05dbdfe6d9e3efdbab0845958cc8e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Write a program that uses the turtle module and a for loop to draw something. | |
# It doesn’t have to be complicated, but draw something different than we have done in the past. | |
# (Hint: if you are drawing something complicated, it could get tedious to watch it draw over and over. | |
# Try setting .speed(10) for the turtle to draw fast, or .speed(0) for it to draw super fast with no animation.) | |
import turtle | |
star = turtle.Turtle() | |
for i in range(50): | |
star.forward(50) | |
star.right(144) | |
turtle.done() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
import turtle
star = turtle.Turtle()
for i in range(50):
star.forward(50)
star.right(144)
turtle.done()