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