Если ответ удовлетворяет условие, так как остановить его, чтобы пробежать дальше в Python

if the answer satisfies the condition so how to stop it to run further ahead in python
Anxious Ant