Level 10 : What will this output?


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

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