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