draw circle using squares

Switch to Dreamhost, and we will move your web site. No kidding.

I am checking out a Python course at udacity and found an interesting Python module named Turtle. Now let me share with you a simple code that I just have written.
import turtle

def draw_square():
window = turtle.Screen()
window.bgcolor("red")

brad = turtle.Turtle()
brad.shape("turtle")
brad.color("yellow")
brad.speed(5)
counter = 0
while counter < 36:
brad.forward(100)
brad.right(90)
brad.forward(100)
brad.right(90)
...

A historical timeline of Codango™

Original Source

#codango #developer #development #coder #coding

We're happy to share this resource that we found. The content displayed on this page is property of it's original author and/or their organization.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*