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