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