What is the use of the break statement?



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

Post New Answer

More Python Interview Questions

How would you achieve web scraping in python?

1 Answers  


What is the difference between range() and xrange() functions in python?

1 Answers  


What is Flask and explain its benefits?

2 Answers  


How do you write if else in python?

0 Answers  


what are the two (2) parameters available in python map?

1 Answers  


What is the difference between python arrays and lists?

1 Answers  


What is MySQLdb?

1 Answers  


What is a negative indexing in python?

1 Answers  


What is the output of the following?

1 Answers  


Where is python used?

1 Answers  


What is strip in python?

1 Answers  


How to print without newline or space?

1 Answers  


Categories