The Python while-else Clause
The Python while-else clause is an additional, optional syntax Python's while loop supports, similar to the else clause in the for loop. It enables you to execute a code block after the loop has finished normally, that is, after the while loop's condition has become false. Abnormal, premature termination, due to reasons such as a break or return statement, skips that code.