Level 10 : What does this output?


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

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