Rajesh SinghApr 1, 20201 minWhile Loop in Python with exampleWhile loop is used to iterate over a block of code again and again until a given condition returns false. A program is executed...
Rajesh SinghApr 1, 20202 minFor Loop in Python with Examplefor () loop is a counting loop and repeats its body for a pre-defined number of times. It is a very versatile statement and has many...
Rajesh SinghApr 1, 20201 minNested If else statement in PythonIf statement is within another if statement then this is called nested of control statements. Example num = -100 if num > 0:...
Rajesh SinghApr 1, 20201 minIf elif else statement in python with examplesWe use the if..elif..else statement when we need to check multiple conditions. Syntax: if condition: statement1 elif condition_2:...