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