Level 9 : What does the break statement do in a loop?

Author: bhavani | Tags: loop | 1859+ Python FAQs | Share
iterator | staticmethod | data-type-conversions | assignment-operators | conditional-statement | array | dictionary-comprehensions | enumerate() | else-statement | functional-programming | else | object-attribute | numpy | escape-operator | numeric | nested-loop | frozenset | filter-function | asyncio | odd-number | polymorphism | file-handling | list-mutation | namedtuple | exception-handling | random-function | logical-operation | decimal | matrix | list-method | fabs-function | data-structures | class-and-object | installation | python-django | center | exception | multiple-inheritance | name-mangling | identifier | managing-directories-with-os-and-shutil | matplotlib | comment | yield | id-function | built-in-function | dicts | expand-tab | working-with-temporary-files-using-tempfile | while-loop | file | collection | using-map()-for-transformations | application | sum() | data-types | operations | threading | deep-copy | data-type | overflow | module | return-statement | version-check | design-principle | higher-order-function | recurssion | raise-statement | joining-and-merging-dataframes | defining-functions | list-vs-tuple | heap-memory | control-statement | command-line-parsing | methods | list-slicing | global | list,-set,-and-dictionary-comprehensions | pep | formal-and-actual-parameter | logical-operator | tuple-unpacking | shallow-copy | zip-function | classes | memory-management | range | python-history | using-lists-as-stacks | __all__-attribute | dictionary-methods | slice | class-decorators | print-statement | assert | stack | string-concatenation | lambda-functions | pseudocode | floating-point-precision | operator-or | turtle | pandas | functions | using-join()-and-is_alive()-methods | error | functional-programming | bitwise-operator | list-operation | copy | operator-and | writing:-write(),-writelines() | collections | identity-operators-(is,-is-not) | mathematics | class-and-instance-variable | file-handling | overriding-methods | iterators | memory | map-function | default-mutable-argument | single-inheritance | why-use-multiprocessing-over-threading?-(gil) | reading-and-writing-files | syntax-error | while-loops | string | introduction-to-threads | string-slicing | loops | choice | operator-overloading | counter-function | integer | inherit | filtering-and-indexing | membership-operators-(in,-not-in) | update | operator | introduction-to-python | package-management | exponentiation | lambda-function | append | multiple-inheritance | generators-in-python | parsing-with-strptime | head-and-tail | library | operators | decorator | bitwise-operator | round-function | format | complex-number | using-else-and-finally | type-conversion-and-casting | working-with-binary-files-(rb,-wb) | docstring | dataframe-and-series-objects | type-conversion | arbitrary-arguments-(*args,-**kwargs) | formatting-with-strftime | objects | generators | int | oops | mutable | postfix | dictionaries | descriptors | data-structures-in-python | python_version | time-series-with-pandas | min-function | using-assertions-(assertequal,-assertraises) | call | split | list-methods-and-slicing | comparison | default-arguments | max-min | built-in | dictionary | booleans | built-in-function | binary-operation | syntax | error-handling | encoding | class | complex | benefit | lambdas | constructor | precedence-and-associativity | mysql | python-module | inheritance | virtual-environment | typeerror | regex | list-comprehension | namespace | reading-and-writing-large-files-efficiently | tuple-methods | mapping-function | interpreter | key-value-pairs | generator | __future__ | data-structure | using-yield-in-functions | list-comprehension | error-handling | filter | list | difference-between-threads-and-processes | conditional-statement | integers | datatype | creating-custom-modules | comprehension | keyword | gil | set | aggregating-data-with-functools.reduce() | math-copysign | logical-operators | string-manipulation | intering | list-comprehensions | context-manager | method-overloading | pickling--unpickling | unit-testing | feature | random | class-and-inheritance | recursion | assignment-operator | string-method | zip | test-discovery | precedence | loop-control | datetime | multiple-except-blocks | matrix-list-comprehension | function-argument | function-and-scope | sorted | boolean-and-non-boolean | thread-safe-data-structures-(queue.queue) | thread-synchronization | using-the-threading-module | introduction-to-multiprocessing | lambda | lists | logical-operator | conditional-statements | opening-files-(open()) | input | string-slicing | handling-missing-values-(fillna,-dropna) | identity-operator | list-join | set-operation | sorting | type-conversion | zfill-function | control-flow | debugging | string-methods | magic-method | virtual-environment | condition | method | anchors-(^,-$) | import-method | data-type | multithreading | counter | directory-operations | while-else-loop | static-method | multiprocessing | immutable-data-type | sys-module | iterable | global-variable | python-operators | exception-handling | for | python-syntax-and-structure | version | sum-function | pass | loop-control-statements | init | creating-and-starting-threads | destructor | strings | expression | tuples | thread | control-flow | string-iteration | datetime.date,-datetime.time,-datetime.datetime | quantifiers-(*,-+,-?,-{}) | function | factorial-function | data_structure | rollback | software-design | implementation | python-repl | compute | variable | raise | arithmetic-expression | string-method | built-in-modules | syntax-error | floats | oop | boolean | mathematical-function | conversion | input-function | def | literal-characters-and-special-characters | attribute | tuple | match | global-variable | data-structure | slicing | with-statement | syntaxerror | encapsulation | invalid-list | regular-expressions | working-with-dates-and-times | goto-function | identity-operator | working-with-file-paths | loop | regular-expression | type_conversion | sorting-and-ranking | min-max-function | boolean-masking | immutability | __init_subclass__ | bitwise | swapping | indentation | join | advanced-file-operations | list-indexing | parameter | using-os-and-pathlib-modules | print | operand | indexing:-loc-vs-iloc | python | asyncio-module | math | binary | input-function | string-formatting | statement | file_handling | string-formatting | scientific-notation | async | global-keyword | sets | arithmetic-operation | access-modifier | walking-through-directories-using-os.walk() | basic | indexing | sys | reading:-read(),-readline(),-readlines() | while-and-for-loop | touples | round ...