Expert-level guide to solving the problem of counting numbers divisible by 4 but not by 7
Example code:
counter = 0
sequenceLength = int(input("Enter the number of numbers in the sequence: "))
for i in range(sequenceLength):
number = int(input("Enter a number in the sequence: "))
if number % 4 == 0 and number % 7 != 0:
counter += 1
if counter > 0:
print("The number of qualifying numbers is: ", counter)
else:
print("NO")