python Nesting of while loop and for loop in hindi by unitdiploma
Nesting of Loop •Python programming language allows the usage of one loop inside another loop. •A nested loop is a loop inside a loop. •The "inner loop" will be executed one time for each iteration of the "outer loop”. Syntax while expression: while expression: statement(s) statement(s) Example of Nested While loop i = 2 while(i < 100): j = 2 while(j <= (i/j)): if not(i%j): break j = j + 1 if (j > i/j) : print i, " is prime" i = i + 1 print "Good bye!" Syntax...