Level 10 : What will this output?


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

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