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