If we want to write Python code to find the answer this question;
x=1
count=0
while(x!=1000):
if(x%7==0):
count+=1
x+=1
else:
x+=1
continue
print("There are ",count," numbers which divisible by 7.")
The output will be There are 142 numbers which divisible by 7.