Share your repls and programming experiences

← Back to all posts
Bacic shape coding
ArjunAchrekar (0)

This will create a rectangle....

from turtle import*
pen = Turtle()
screen = Screen()
pen.forward(100)
pen.right(90)
pen.forward(50)
pen.right(90)
pen.forward(100)
pen.right(90)
pen.forward(50)

This will create a square ....

from turtle import*
pen = Turtle()
screen = Screen()
pen.forward(100)
pen.right(90)
pen.forward(100)
pen.right(90)
pen.forward(100)
pen.right(90)
pen.forward(100)

Thus,you can create more shape.....