Level 10 : What does this output?


lst = [1, 2, 3, 4]
lst[1:3] = [7]
print(lst)

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