table of example of nested for loop in pythonfor in range ( )for in range( )print ("*"end='print ("output************************************nested while loopwhile loop can hold another while loop inside it in above situation inside while loop will finish its execution first and the control will be returned back to outside while loop syntax while expressionwhile expression statement(sof inside while loop statement(sof outside while loop in this first while loop will initiate the iteration and later second while loop will start its first iteration and till second while loop complete its all iterations the control will not be given to first while loop and statements of inside while loop will be executed once all iterations of inside while loop are completed than statements of outside while loop will be executed and next iteration from first while loop will begin it is also possible that if first condition in while loop expression is false then second while loop will never be executed example program to show nested while loop =