Level 10 : What will this output?


lst = [1, 2, 3]
lst += [4]
lst *= 2
print(lst)

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