In this we are going to see a basic program to draw lines using turtle library in Python Programming Language.
import turtle
t = turtle.Turtle()
t.forward(100)
t.left(45)
t.backward(100)
t.right(45)
t.forward(100)
turtle.exitonclick()
# Coded by Shreya Idate
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP