user
You need to complete the following task:

You are given a set of numbers. Write the code to count how many numbers are divisible by 3 and 5.

[5, 9, 10, 15, 16, 20, 25, 30]

Answer:
assistant
count = 0
for num in [5, 9, 10, 15, 16, 20, 25, 30]:
    if num % 3 == 0 and num % 5 == 0:
        count += 1
print(count)
 
Output:
3