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