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