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