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