Project Description
Your project today is to write a Python program that counts how many numbers from 1 to 100 are divisible by both 3 and 5, and also prints out exactly which numbers these are.
This is a classic small program that teaches you how to use:
Loops (to go through each number in a range)
The modulus operator
%
(to check for divisibility)Lists (to store matching numbers)
And
len()
(to count the total)
In the real world, similar logic is used all the time to filter datasets — like finding every product with a price that meets multiple discount rules, or filtering out transactions that match multiple conditions.
Expected Output
💡 Hint
Not sure how to begin? Click the Show Hint button below to see how to loop through the numbers and check if each one is divisible by both 3 and 5.
✅ The hint also shows how to collect those numbers in a list and print the count.
𝌣 Solution
🔒 This solution is available to paid subscribers only.
🚀 It includes a clean function that makes your code reusable and easy to test.
🚀 Want to keep leveling up?
Browse 300+ projects at dailypythonprojects.substack.com/archive and unlock all solutions by subscribing. Build real Python skills daily and transform how you learn — one project at a time.