Python turtle graphics

 

PYTHON TURTLE GRAPHICS


PYTHON TURTLE GRAPHICS

# 1 How to create Python turtle Square.

Syntax - import turtle

               T=turtle.Turtle()

               T.forward(100)

               T.right(90)

               T.forward(100) ......


# 2 How to create Python turtle Triangle.

Syntax - import turtle

               T=turtle.Turtle()

               T.forward(100)........


# 3 How to create Python turtle Star.

Syntax - import turtle

               T=turtle.Turtle()

               T.forward(100)........


# 4 How to create Python turtle multiple circle Design.

Syntax - import turtle

               t=turtle.Turtle()

               Count=1

               while (count<10):

                    t.speed(70)

                    t.forward(100) ..... 


 # 5 How to create Python turtle circle Design.

Syntax - import turtle

               t=turtle.Turtle()

               Count=1

               while (count<10):

                    t.speed(70)

                    t.forward(100) .......


# 6 How to create Python turtle interesting Design 1⃣.

Syntax -  

import turtle
t=turtle.Turtle()
count=1
while (count<10):

    t.speed(70)
    t.forward(10)
    t.right(50).........

Comments