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

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