Level 10 : What is the output of the following?


for i in range(3):
    if i == 1:
        continue
    print(i, end="")
else:
    print("End", end="")

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