From c1801334d3598e1815068d414b9971e68a2c88d6 Mon Sep 17 00:00:00 2001 From: Antony Joseph Mathew <48788499+ajmanjoma@users.noreply.github.com> Date: Sat, 11 Feb 2023 00:11:54 +0530 Subject: [PATCH] update square AJM --- place.py | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/place.py b/place.py index b4b1b04..a592782 100644 --- a/place.py +++ b/place.py @@ -93,4 +93,41 @@ red.forward(2) red.right(2) red.forward(2) -red.right(2) \ No newline at end of file +red.right(2) + + + + + + + + + + + + + + + + + + +~AnJoMA~ +t = turtle.Turtle() +s = 50 +# drawing first side +t.forward(s) # Forward turtle by s units +t.left(90) # Turn turtle by 90 degree + +# drawing second side +t.forward(s) # Forward turtle by s units +t.left(90) # Turn turtle by 90 degree + +# drawing third side +t.forward(s) # Forward turtle by s units +t.left(90) # Turn turtle by 90 degree + +# drawing fourth side +t.forward(s) # Forward turtle by s units +t.left(90) # Turn turtle by 90 degree +~end~