From c5c231bc7517a54d03fc729556484973caef865c Mon Sep 17 00:00:00 2001 From: Aminah Date: Sun, 15 Sep 2024 20:51:52 -0400 Subject: [PATCH] No it wasn't difficult. I used, modified, and (re) created. I liked ranges I understood how to manipulate them using common denominators and limits. It was easy to play around with and see how each range changed based on my input. Yes, I will use it in the future because it basically reiterates what was explained in the function and provides more precise instructions on what was manipulated --- __pycache__/tile.cpython-312.pyc | Bin 0 -> 2081 bytes __pycache__/tile_grid.cpython-312.pyc | Bin 0 -> 1573 bytes python.py | 21 +++++++++++++++++++++ tile.py | 2 +- tile_grid.py | 4 +++- 5 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 __pycache__/tile.cpython-312.pyc create mode 100644 __pycache__/tile_grid.cpython-312.pyc create mode 100644 python.py diff --git a/__pycache__/tile.cpython-312.pyc b/__pycache__/tile.cpython-312.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1103229a5e597ef169793d4a4503fd6af1c3ad6f GIT binary patch literal 2081 zcmbVN&2Jk;6rWj-?Tur%amg1YpaCk-mMTsVA3anYDyyUd0#txRCFE{AV|&GB*UYZ5 zYz3(YN7_n7axb+1LKX3sa7`~Oiwj(GqxP*Q-Wxm4hNNl5Nb~dCH#2YEZ{COhC=_x8 z#>R(#*7j0_{DmKf!@ek*hxPsRnU3Vv!i z^|~t`)0hQLR|e<`e|D|(Z6H-pvbP=2ZYaAG_^MQv!H=QeEN!=|>!p_GgzF{O-l{lo ziyb)%%}zWsy-ne3Bd6d3z+Lh;Tj+~@_S%3I`auZ8oJ>^<7`Z8Q^Ivsj}#brl@8>ROv%7aiIusmkd}w`hK4+4OlMvVE1!13)*8Y zGEg9=(HdAf9!WvFu>CYgg^|$WwR(tDLW|Dnu>+a+A3Nyn|5-cB=ILG_-RIr(!V?KL zr|#_#i)|j@1IBF2ZOMb%AX=F?3pv}il~4t} zw{s$@88D&{@-Tw{0HZn^mHWkeH+o-UfWO;k^8;o^7kV25%*jXV4{H1D^#PmjfAi?g z2e7i>1qn)}Z zEPmntECb$l!UmKz$Fg(0I#hfrPDAdun(7rW8)rcle%phlWC|w;ZLc~h^l=p|!6t=p z5oRzCfR#Ga`xGB-W1lU+@9xc$griJnmm)q?58( z_flE6Je!ZJm-{syI6`t)diAiu?_k5aqvqgph3!StR<>7{nzlkBmZ7k;vAGEuV29^? zO!^$i3W386-T(m7a|?a@H#1@b^L(G(FAU6lbn931X_^#YJ%c_TPSW2Yvrxf%lm8P+ zI);_%t{sw@<-VMopg@-NWLEx}?hYe`vnCz=#PSBV$RYz5Ii_R!pIISSr!4}|d zh42o{0Qq3-a?y?Grw#q4o7{apEj-;ilT`@DN zv_^p(98e%FIwd~l8bYD}M^6F!&_(T~z2s(WpK@v68~t?CLp!i<-_D!&=6&CLZ+|Hi z76~ls{9ao&3Hbv*Cd(KrCpSQONqpkdko;s&)QpfejUCi8dt@i$n;=c!0%`eKklAFx zvEN|;ho z&zS5|qA;dj^SjU2Orr3{v86}ejNyUD!fbyQ=lN~$$jvN})zl-Qj8Yw)1nP!6k$z~5k<05(++a<|rwsw#*h=7UGXK;d3>WZPU^WU#J2jN5|oZY%U6 zPakb?!8aXktT(?&P%=K` zWK&D0nr26tra7IS40d^1IFo5glazL47Oune7<<1}ejvG!Wv>}TUPE|^j752y%kNa& zDmOdT>*aP7sO#m>`_>H<7aB!b2SqwITS;0(`0jK|tUz?^K6xL+6LPvpisuJk{`ja* zhvz;Xv|oJE-}*Iwao;(}e=*E24{|?Ljx4gWewrn@(*Dg?{J`EA+H3o{L;Ld45-FBW z^Tb*kB(JUGClx1n+<wMdzB$VeR@yBsyGX2cGPL9 ziK8@%jiWT`9nBSndrh>1Zmak9t!C`ELw;MVg9&e!c->KkQhHh>boDp#(XqKiuN_}9 QC_A=IS~$s@w5UV;4Q8ZY-v9sr literal 0 HcmV?d00001 diff --git a/python.py b/python.py new file mode 100644 index 0000000..d82545c --- /dev/null +++ b/python.py @@ -0,0 +1,21 @@ +from turtle import * + +def square(side_length): + forward(side_length) + right(90) + forward(side_length) + right(90) + forward(side_length) + right(90) + forward(side_length) + right(90) +sizes = [20,40,60,80,100] +for size in sizes: + square(size) +for size in sizes: + square(20) + penup() + forward(40) + pendown() + input() + \ No newline at end of file diff --git a/tile.py b/tile.py index 697cf8e..adbff0e 100644 --- a/tile.py +++ b/tile.py @@ -11,7 +11,7 @@ def draw_tile_outline(size): def draw_squiggle(size): forward(size/4) - pencolor("black") + pencolor("blue") left(90) quarter_arc_right(size/4) quarter_arc_left(size/4) diff --git a/tile_grid.py b/tile_grid.py index 72a0f43..b648915 100644 --- a/tile_grid.py +++ b/tile_grid.py @@ -10,7 +10,9 @@ from tile import fly def draw_tile_grid(width, height, tile_size, tile_function): """Draws a (width x height) grid, with tile_function drawn on each tile. - (Your explanation here.) + (To draw width, moves to x origin then moves up one row to create tile size then returns to the original + moves to the right 90 for the width, moves to the left 90 for the height then goes back to the origin + and repeats) """ for y in range(height): for x in range(width):