Commit Graph

5 Commits

Author SHA1 Message Date
Chris Mekelburg 731fbb0320 I think I submitted this already, but just trying
to resubmit. Docstrings will be helpful to remind
myself of what a section of code does and will
also make it easier to find a certain section of
code.
2024-09-17 20:56:02 -04:00
Chris Mekelburg 79df991a9d Ckpoint 3 gave explanation for draw_tile_grid
Doc strings are useful becuase they can help you remember what
a block of code does. I think I will use them in the future because
they keep a record of what a block of code does, and can also be used to
refresh your memory on a block of code you had previosuly figured out.
2024-09-12 18:59:59 -04:00
Chris Mekelburg bf2b3fde84 ck 2 updated range.py
I found it interesting that the range function can be used to avoid the
need for a long list in python. I also found it interesting that the
range does not use the last item (the maximum), so I added maximum+1 in
a couple of spots to make the output read more accurately. I was
surprised that it worked that easily, but am also wondering if there is
a way to use a range as inclusive of both the start and end value.
Another thing I am curious about is how to use ranges for a purpose
besides generating a list of numbers.
2024-09-07 21:23:49 -04:00
Chris Mekelburg 29b250ff83 changed square.py to use list iteration, ck #1
I thought the directions were very clear for the list iteration although
I did need to read through them several times, and tried to understand
what they were saying before opening the file. I then ran the original
code to see what it did, so I could compare my final product. As I
worked on the list iteration, I also kept the original code at top
commented out so I could refer to it, and did not delete it until I was
sure my iteration method worked. I was not totally sure if I could call
the list whatever I wanted to, but it seems like I could as long as one
of the names is singular and the other is plural. I feel like I have a
good grasp of iteration after this part.
2024-09-07 20:40:47 -04:00
cmekelburg 883e64b8de Initial commit 2024-08-27 23:08:17 +00:00