Level 9 : What will be the output of the following Python code?


i = 5
while True:
    if i%0O9 == 0:
        break
    print(i)
    i += 1

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