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