Level 5 : What will be the output of the below python code


i=1
while True:
    if i % 2 != 0:
        break
    print(i)
    i+=2

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