archiveWhile loop

computer scince and engineeringpython

python While loop For loop range() function break and continue pass and return statements with examples in hindi by unitdiploma

While Loop •The while loop is used to iterate over a block of code as long as the test expression (condition) is true. •Syntax:   while condition:   Body of while •Working:   In while loop, test expression is checked first. The body of the loop is entered only if the condition evaluates to True. After one iteration, the test expression is checked again. This process continues until the condition evaluates to False. •The body of the while loop is determined through indentation. While loop with else •We can also use an optional...