Level 10 : Output of this snippet?


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

Author: SandhyaR | Tags: list | 1736+ Python FAQs | Share
inherit | global-keyword | python-repl | int | pseudocode | string-method | factorial-function | memory | heap-memory | identifier | comment | built-in-function | sys | keyword | random | overflow | goto-function | mapping-function | tuple-unpacking | list-method | gil | immutability | boolean-and-non-boolean | oops | pickling-&-unpickling | data-type | functions | yield | dictionary | string-iteration | string-manipulation | numpy | turtle | file_handling | counter-function | random-function | data-type | expand-tab | python-module | debugging | data-structure | slicing | threading | numeric | while-loop | array | floating-point-precision | scientific-notation | math | split | head-and-tail | error | method | list-join | class-and-inheritance | list-operation | conditional-statement | call | identity-operator | inheritance | access-modifier | asyncio | update | nested-loop | file-handling | string-formatting | format | sys-module | precedence-and-associativity | formal-and-actual-parameter | list-slicing | parameter | join | append | basic | string-method | bitwise-operator | python-django | dictionaries | list-comprehension | complex-number | conversion | type-conversion | bitwise | module | decimal | object-attribute | filter-function | memory-management | arithmetic-expression | round | lambda | type_conversion | sum() | operand | pep | encoding | list-indexing | recursion | while-else-loop | condition | postfix | mathematics | input | lambdas | zip | generator | list-comprehension | list-mutation | zip-function | async | function-argument | mutable | multithreading | function-and-scope | iterable | id-function | logical-operation | generators | compute | logical-operator | string-concatenation | loop | pandas | namespace | functional-programming | operator-or | set-operation | exception-handling | max-min | import-method | datatype | library | copy | datetime | operator-overloading | data_structure | destructor | boolean | set | class-and-object | design-principle | zfill-function | class | operator | recurssion | loops | center | descriptors | round-function | python | lists | with-statement | filter | dicts | else-statement | expression | syntaxerror | string | exception | min-function | while-and-for-loop | feature | operator-and | string-formatting | function | command-line-parsing | staticmethod | global-variable | global | collection | python-history | min-max-function | return-statement | variable | stack | tuple | sorted | binary-operation | sorting | classes | print-statement | range | deep-copy | attribute | indexing | logical-operator | matrix | constructor | virtual-environment | context-manager | counter | namedtuple | precedence | __future__ | data-structure | thread | methods | version | invalid-list | fabs-function | choice | arithmetic-operation | touples | print | docstring | bitwise-operator | binary | __init_subclass__ | integer | rollback | control-flow | objects | init | encapsulation | magic-method | built-in | data-structures | control-flow | syntax-error | matplotlib | assignment-operator | map-function | higher-order-function | asyncio-module | type-conversion | version-check | file | immutable-data-type | escape-operator | list-vs-tuple | decorator | multiprocessing | default-mutable-argument | generators-in-python | odd-number | exception-handling | python_version | complex | global-variable | swapping | benefit | shallow-copy | package-management | matrix-list-comprehension | control-statement | implementation | mysql | regular-expression | frozenset | match | iterator | enumerate() | interpreter | sum-function | name-mangling | syntax-error | loop-control | comprehension | math-copysign | list | string-slicing | class-and-instance-variable | mathematical-function | operators | virtual-environment | input-function | exponentiation | input-function | static-method | raise | oop | error-handling | string-slicing | slice | software-design | comparison | syntax | typeerror | for | statement | __all__-attribute | lambda-function | built-in-function | file-handling | collections | conditional-statement | identity-operator | operations | polymorphism | multiple-inheritance | indentation | regex | installation | application | assert | def ...