In a for-loop iterating through a list, if a specific condition is met and you want to skip the remaining code in the current iteration but not exit the loop, you would use the _______ statement.
- Break
- Continue
- Pass
- Skip
The 'continue' statement is used to skip the remaining code in the current iteration of a loop and move to the next iteration without exiting the loop. So, you would use 'Continue.'
Loading...
Related Quiz
- In Python, which keyword is used to define a metaclass within a class definition?
- How do you instantiate an object from a class in Python?
- The process of converting source code into bytecode, which is then executed by the Python interpreter, is called _______.
- Which library would you primarily use for implementing linear regression in Python?
- How would you chain multiple decorators on a single function?