Level 10 : Output of this snippet?


lst = [0, 1, 2, 3]
del lst[1:3]
print(lst)

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