What is a loop?
3 Likes
A loop is a repetitive control structure in which a statement or a set of statements are executed repeatedly until the given condition is false or the desired number of iterations are over.
Answered By
Write Python code to display the following pattern:
1 2 3 4 5 2 3 4 5 3 4 5 4 5 5
9 9 7 9 7 5 9 7 5 3 9 7 5 3 1
Explain for loop with an example.
What is significance of range() function in a for loop.