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