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