Hey If you are beginner and want to learn a python then you are on right path. Learn basic as well as advanced programming in Python.

Search

Python program for drawing the Square.


PYHTON PROGRAM




import turtle

window = turtle.Screen()

turtle.bgcolor("gold")

t = turtle.Turtle() 

s=250

t.forward(s)

t.left(90) 

t.forward(s) 

t.left(90)

t.forward(s) 

t.left(90)

t.forward(s)

t.left(90)

window.exitonclick()




*** Input && Output ***





No comments:

Post a Comment

let me know which type examples you want to comment me.