i understand all the ranges
chances are i wont need people reading my program but if they do ill be there guideing them
This commit is contained in:
chuttenmaier
2025-09-24 09:31:27 -04:00
parent cb57983162
commit 01378deaa5
3 changed files with 13 additions and 5 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(1, maximum, 2):
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}")