The ______ statement in Python is used to resume the loop from the top.
- break
- continue
- goto
- return
The continue statement in Python is used to skip the rest of the current iteration of a loop and resume the loop from the top with the next iteration. It allows you to bypass certain iterations based on a condition.
Loading...
Related Quiz
- A ____ is a data structure that stores elements in a linear sequence but allows additions and removals only at the start.
- You are developing a Python program and need to debug a function in a module. Which Python tool would you use to step through the code and inspect the values of variables?
- In the pytest framework, how do you mark a test function so that it is not executed by the test runner?
- The process of assigning a value to a variable for the first time is called variable _______.
- Use context managers and the 'with' statement to encapsulate the setup and teardown actions.