Level 5 : Find the Output of the below code


a=1
while True:
    if a%9 == 0:
        break
    print(a)
    a += 1

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