Level 2 : What is the use of 'While' loop in Python?

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