Inline While Loop Python Break Vs Return