sequence()
range()
list()
loop()
It skips the current iteration and goes to the next iteration.
It terminates the loop entirely
It does nothing.
It restarts the loop.
Exits the loop entirely.
Skips the rest of the code in the current iteration and moves to the next iteration.
Restarts the loop.
Causes an error.
To execute if the loop terminates normally without a break.
To execute after every iteration..
To handle errors in the loop.
To terminate the loop.
Only the first condition is checked.
All conditions are checked, even if one is True.
It behaves the same as if-elif.
It raises an error.
exit
break
continue
stop
Iterating over a list.
Iterating over a string.
Iterating over a dictionary.
None of the above
The loop runs indefinitely.
The loop executes once before terminating.
The loop does not execute.
It raises an error
It will raise an IndexError.
It will iterate once with a default value of None.
It will not execute the loop body.
It will run indefinitely.
To execute when the loop is terminated using break.
To execute after the loop completes without encountering a break.
To restart the loop.
To execute before the loop starts
The outer loop must run fewer times than the inner loop.
Only for loops can be nested.
Both for and while loops can be nested.
The inner loop runs only once for each iteration of the outer loop.
while loop
for loop
do while loop
all of these
if
if-else
elif
if-else-if
a=2,b=3,c=4
a,b,c=2,3,4
a=2;b=3;c=4
Both b and c
Only One
1-10
Any number of Times
Any number of times but one inside another only.