import turtle
turtle.color("black")
turtle.speed(5)

counter=0
while counter < 36:
    for i in range(4):
        turtle.forward(100)
    turtle.right(90)
turtle.right(10)
counter += 1
turtle.exitonclick()

asked 30 Oct, 17:25

nahian's gravatar image

nahian
212

edited 30 Oct, 18:05

Mosharraf%20Hosain's gravatar image

Mosharraf Hosain ♦
9618

do you want to make a circle ? @nahian

(30 Oct, 17:42) menon

yes @menon

(30 Oct, 17:56) nahian

to draw circle just write turtle.circle(100) where 100 is radius @nahian

(30 Oct, 18:02) menon

Try this,

import turtle

turtle.color("black")
turtle.speed(5)

counter = 0
while counter < 36:
        for i in range(4):
                turtle.forward(100)
                turtle.right(90)
                turtle.right(10)
        counter += 1
        #turtle.exitonclick()

permanent link

answered 30 Oct, 17:46

menon's gravatar image

menon
3.9k222

edited 30 Oct, 18:02

where's the difference??

(30 Oct, 17:57) nahian

look at source code

(30 Oct, 17:59) menon
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×70
×1

question asked: 30 Oct, 17:25

question was seen: 70 times

last updated: 30 Oct, 18:05