Commit Graph

4 Commits

Author SHA1 Message Date
Cory Dean Chung e5ce11b690 I created a new tile pattern and explained how
draw_tile_grid works.

Checkpoint 3:
I probably would use docstrings. I like to break up my work into small
bits. Having docstrings to quickly remind myself of what I've written
should do would be helpful. Additionally, if I'm working with or showing
my work to someone else, it'd be helpful for them to know what the
things I'm writing should do.
2023-07-20 16:11:50 -04:00
Cory Dean Chung 34ca650305 I implemented print_even_numbers,
print_odd_numbers, and print_multiples_of_five.

Checkpoint 2:
I understand the "stride" in a for loop.
Overall, I feel comfortable with ranges. The only
thing I was unsure of was whether I did
print_even_numbers correctly. The assignment
specified that print_all_numbers was implemented
correctly, and when I input 8 the output was the
integers from 0 to 7 inclusive. When I did
print_even_numbers(8), it returned 0 2 4 6. I
would've thought from the description, returning
even numbers from 0 to maximum, would also include
8, but since print_all_numbers did not include the
maximum itself, I left it as is.
2023-07-20 12:50:17 -04:00
Cory Dean Chung daae31288d I rewrote the repeated lines using a for loop.
Checkpoint 1:
It was not difficult. I used the model from the
assignment description to create the loop and
removed the now redundant lines. I ran it with
python square.py to check that it worked, and
it seemed to.
2023-07-20 12:42:11 -04:00
cchung 7273239465 Initial commit 2023-07-19 20:14:07 +00:00