generated from mwc/lab_iteration
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. |
||
---|---|---|
.commit_template | ||
drawtiles.py | ||
poetry.lock | ||
pyproject.toml | ||
ranges.py | ||
square.py | ||
tile.py | ||
tile_grid.py |