For Checkpoint 3 I added in the coordinates used for the

code. To me, this provided more information for thereader.

I thinkI would use docstrings. They are helpful because they put what the code does info
"laymans" terms.
This commit is contained in:
Heather
2025-10-04 17:52:01 -04:00
parent 4bae8094d3
commit 438ca9f024
3 changed files with 17 additions and 6 deletions

View File

@@ -9,15 +9,18 @@ def print_all_numbers(maximum):
def print_even_numbers(maximum):
"Prints all even integers from 0 to maximum."
pass
for number in range(0,maximum, 2):
print(number)
def print_odd_numbers(maximum):
"Prints all odd integers from 0 to maximum."
pass
for number in range(0,maximum, 3):
print(number)
def print_multiples_of_five(maximum):
"Prints all integers which are multiples of five from 0 to maximum."
pass
for number in range(0,maximum, 5):
print(number)
chosen_maximum = int(input("Choose a number: "))
print(f"All numbers from 0 to {chosen_maximum}")