Jeśli odpowiedź najkoszczęszsza warunek, jak zatrzymać go, aby uruchomić dalej w Python

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