Python for Testers #21 – While Loop in Python | Python loops Tutorial

In this Python for Testers Tutorial we will learn how to use While loop in python. Loops in python are used to execute a particular set of code again and again until the condition is evaluated as false. In the python while loop an expression is evaluated first and if the expression is evaluated to true the while loop body is executed else the while loop is skipped in control moves out of while loop.