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