Si la réponse satisfait la condition, alors comment l'arrêter pour courir plus loin dans Python

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