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