Hint
🧠Not sure how to start?
Try breaking the problem into steps:
Use a
forloop to go through each number from 1 to 100:
for number in range(1, 101):
# check if divisible by 3 and 5
Inside the loop, use the modulo operator
%to check if the number is divisible by both 3 and 5:
if number % 3 == 0 and number % 5 == 0:
# store it somewhere
You can use a list to collect these numbers:
divisible_numbers = []
divisible_numbers.append(number)
After the loop finishes, print the list and its length:
print(divisible_numbers)
print("Total count:", len(divisible_numbers))
This gives you both the actual numbers and how many there are.

