Level 10 : 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 | 1736+ Python FAQs | Share
mathematics | arithmetic-expression | expression | static-method | touples | built-in-function | multiprocessing | iterable | data-structure | descriptors | type-conversion | copy | random-function | tuple-unpacking | identity-operator | installation | loop | default-mutable-argument | debugging | list-operation | escape-operator | mathematical-function | variable | syntaxerror | collections | destructor | asyncio | python-history | import-method | matplotlib | logical-operator | syntax-error | indentation | id-function | constructor | counter-function | generators-in-python | package-management | library | list-comprehension | filter-function | def | list | input-function | round-function | filter | command-line-parsing | string-concatenation | input-function | else-statement | class-and-inheritance | multiple-inheritance | comprehension | while-else-loop | implementation | condition | regular-expression | shallow-copy | lambda-function | comment | turtle | built-in-function | design-principle | pep | sum() | nested-loop | docstring | format | inheritance | bitwise-operator | sorted | list-vs-tuple | datatype | generator | while-and-for-loop | precedence | global | version-check | python-django | string-iteration | dictionaries | syntax | file-handling | functional-programming | file-handling | heap-memory | fabs-function | set-operation | factorial-function | decorator | class | while-loop | invalid-list | max-min | data-structures | virtual-environment | mutable | enumerate() | sys | bitwise | matrix | exception | collection | control-statement | zip | async | data-structure | __init_subclass__ | string-manipulation | keyword | head-and-tail | logical-operator | global-variable | datetime | object-attribute | conditional-statement | generators | append | odd-number | exception-handling | staticmethod | bitwise-operator | lists | asyncio-module | memory-management | name-mangling | list-comprehension | classes | data_structure | memory | conversion | namespace | python_version | input | math-copysign | parameter | sum-function | type-conversion | list-method | math | function-argument | assert | binary-operation | string-formatting | magic-method | file | print | decimal | method | virtual-environment | for | statement | global-keyword | floating-point-precision | encapsulation | deep-copy | typeerror | map-function | function | function-and-scope | __all__-attribute | string-slicing | feature | string-formatting | expand-tab | zfill-function | logical-operation | exception-handling | call | global-variable | list-slicing | loop-control | operations | overflow | operators | mysql | binary | context-manager | python-repl | exponentiation | polymorphism | with-statement | arithmetic-operation | choice | raise | class-and-instance-variable | operator | functions | loops | complex | formal-and-actual-parameter | tuple | set | boolean-and-non-boolean | numeric | comparison | goto-function | data-type | matrix-list-comprehension | round | center | version | basic | lambda | match | complex-number | stack | dictionary | immutable-data-type | pandas | precedence-and-associativity | string | min-function | init | operator-overloading | python | boolean | array | type_conversion | list-mutation | lambdas | namedtuple | scientific-notation | numpy | compute | multithreading | encoding | python-module | error-handling | string-slicing | software-design | swapping | print-statement | pseudocode | conditional-statement | identifier | string-method | yield | string-method | counter | int | gil | control-flow | oops | attribute | control-flow | access-modifier | frozenset | split | integer | join | file_handling | benefit | range | class-and-object | random | dicts | recursion | methods | operand | recurssion | regex | interpreter | immutability | indexing | assignment-operator | higher-order-function | error | slicing | data-type | syntax-error | application | return-statement | operator-or | built-in | inherit | postfix | oop | update | operator-and | list-indexing | sys-module | objects | min-max-function | list-join | slice | __future__ | rollback | thread | iterator | identity-operator | module | mapping-function | sorting | zip-function | threading | pickling-&-unpickling ...