Python Function Not Looping Back When An Certain Condition Is Met

Python Function Not Looping Back When An Certain Condition Is Met