From 9f32a055ecb204c4226d8e166019247092328768 Mon Sep 17 00:00:00 2001 From: sonu kumar <89937675+Sonucoder@users.noreply.github.com> Date: Tue, 11 Oct 2022 13:31:33 +0530 Subject: [PATCH] draw a square.py make a square using python --- Python/square.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Python/square.py diff --git a/Python/square.py b/Python/square.py new file mode 100644 index 0000000..6152306 --- /dev/null +++ b/Python/square.py @@ -0,0 +1,16 @@ +# Github username: Sonucoder +# Aim: Draw a square using python +# Date: 11/10/2022 +import turtle +x=turtle.Turtle() +def square(circle): + x.forward(100) + x.right(circle) + x.forward(100) + x.right(circle) + x.forward(100) + x.right(circle) + x.forward(100) + x.right(circle+10) +for i in range(36): + square(90)