In Python, the ____ statement is used to interrupt loop iteration and jump to the next iteration of the loop.
- break
- continue
- pass
- return
In Python, the 'break' statement is used to interrupt loop iteration and exit the loop prematurely. When 'break' is encountered inside a loop, it jumps to the next statement after the loop.
Loading...
Related Quiz
- Functions that return an iterator yielding items instead of a list are called _______.
- You are tasked with finding the common elements between two large datasets. Which algorithmic approach would be the most efficient?
- The contextlib module provides a utility called _______ to create context managers using generator functions.
- How would you deploy a Django application to a production environment, considering scalability and security?
- You've received a JSON file with non-ASCII characters, and while reading the file using the Python json module, you're facing an encoding issue. What can be done to correctly parse the JSON?