What is the use of the break statement?
Answer / Praveen Shrivastava
The 'break' statement in Python is used to exit a loop (for, while or nested loops) immediately. It stops the execution of the loop and continues with the next statement after the loop.
| Is This Answer Correct ? | 0 Yes | 0 No |
How would you achieve web scraping in python?
What is the difference between range() and xrange() functions in python?
What is Flask and explain its benefits?
How do you write if else in python?
what are the two (2) parameters available in python map?
What is the difference between python arrays and lists?
What is MySQLdb?
What is a negative indexing in python?
What is the output of the following?
Where is python used?
What is strip in python?
How to print without newline or space?