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