4 Commits

Author SHA1 Message Date
angelotr
49db8a57a8 A few changes I did in tile.py was I added color to my draw_tile() function and added a sqwiggle to make my tile unique. This made a cross pattern tile with a sqwiggle inside the tile.
Checkpoint 3:
When writing my own programs I think I would try to use docstrings more. When writing programs I normally use the hashtag which has become muscle memory for me but I will try to use docstring because it looks cleaner and more effective.
2025-09-14 23:31:17 -04:00
angelotr
474b5cf9f0 I implemented the missing functions by replacing the pass statements with for loops that use range and step sizes. This allows print_even_numbers, print_odd_numbers, and print_multiples_of_five correctly.
Checkpoint 2:

What I understood well was the print_even_numbers, print_odd_numbers, and print_multiples_of_five functions because it reminded me of an assignment I had in my previous coding courses.
What I found interesting about ranges is that it included the first and last numbers in the list. My initial assumption was that when using ranges it would call every number in between the first and last digit, excluding the first and last digit.
With ranges I am a little unsure about whether range includes the maximum numberor stops just before it, and when I should add the +1 to make sure the endpoint is included.
2025-09-14 14:11:46 -04:00
angelotr
43d3315af6 I replaced the four repeated forward and right command with a for-loop that iterates over a list of sides, so each command is written only once while still drawing the same square
Checkpoint 1:

I found it difficult to rewrite square() using a for-loop. It has been a long time since I took a coding course so I did not remember much from what I did in previous coding courses to apply here.
I did a lot of trial and error to see what I remembered about for-loops and if all went wrong I looked online for examples of how a for-loop properly looks.
2025-09-13 21:29:39 -04:00
2be7ebf5c5 Initial commit 2025-09-01 02:29:11 +00:00