Check out a more simplified solution.
for i in range(200): # from the question x is less than 200.
if (i % 5 == 2) and (i % 6 == 3) and (i % 7 == 2):
print(i)
break
Where we have used break to avoid further unnecessary computation after the number is found.