From 4df3f1b62bbc7ea74bc4140e138d218290469855 Mon Sep 17 00:00:00 2001 From: Antony Joseph Mathew <48788499+ajmanjoma@users.noreply.github.com> Date: Sat, 11 Feb 2023 00:10:06 +0530 Subject: [PATCH] update square AJM #4 --- place.py | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/place.py b/place.py index 4dde668..78258bf 100644 --- a/place.py +++ b/place.py @@ -89,4 +89,29 @@ 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~