Answer:
# Prompt the user to enter how many numbers they would like to check
num_numbers = int(input("How many numbers do you need to check? "))
# Initialize two count variables - one for numbers divisible by 3, and one for numbers not divisible by 3
count_divisible = 0
count_not_divisible = 0
# Create a for loop that will run the number of times specified by the user
for i in range(num_numbers):
# Prompt the user to enter a number
number = int(input("Enter number: "))
# Check if the number is divisible by 3
if number % 3 == 0:
# If the number is divisible by 3, output a message and update the count
print(f"{number} is divisible by 3.")
count_divisible += 1
else:
# If the number is not divisible by 3, output a message and update the count
print(f"{number} is not divisible by 3.")
count_not_divisible += 1
# Output the final counts of numbers that are and are not divisible by 3
print(f"You entered {count_divisible} number(s) that are divisible by 3.")
print(f"You entered {count_not_divisible} number(s) that are not divisible by 3.")