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