Any answer does not seem ideal in Python, but what about an indent concluded with an "until" like: # do some stuff # do some more stuff until condition == true