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