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