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