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