From 3c0a8a391e1c584f13fb403b9b8845bc671620d1 Mon Sep 17 00:00:00 2001 From: DhruvalBhinsara1 <48351115+DhruvalBhinsara1@users.noreply.github.com> Date: Fri, 30 Oct 2020 15:56:45 +0530 Subject: [PATCH] Patterns in python I have used turtle module in this project it make a pattern --- Python turtle | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Python turtle diff --git a/Python turtle b/Python turtle new file mode 100644 index 0000000..fe2df64 --- /dev/null +++ b/Python turtle @@ -0,0 +1,20 @@ +import turtle #Inside_Out +wn = turtle.Screen() +wn.bgcolor("light green") +skk = turtle.Turtle() +skk.color("blue") + +def sqrfunc(size): + for i in range(4): + skk.fd(size) + skk.left(90) + size = size + 5 + +sqrfunc(6) +sqrfunc(26) +sqrfunc(46) +sqrfunc(66) +sqrfunc(86) +sqrfunc(106) +sqrfunc(126) +sqrfunc(146)