Level 10 : What will this output?


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

Author: SandhyaR | Tags: list | 1736+ Python FAQs | Share
data-type | async | map-function | class | staticmethod | python_version | logical-operator | indentation | loop-control | destructor | dictionaries | matplotlib | odd-number | deep-copy | python-history | while-and-for-loop | zip | statement | condition | fabs-function | decorator | binary-operation | function-argument | functional-programming | string-formatting | conditional-statement | scientific-notation | binary | else-statement | append | implementation | error | precedence | generator | filter-function | collections | decimal | factorial-function | operators | file-handling | multiple-inheritance | feature | pickling-&-unpickling | random | min-max-function | operator-and | memory | matrix-list-comprehension | virtual-environment | docstring | variable | built-in | descriptors | installation | encoding | context-manager | pseudocode | assert | init | data_structure | dictionary | regular-expression | static-method | precedence-and-associativity | global-keyword | built-in-function | python-django | lists | higher-order-function | print | numeric | library | data-structure | loop | set-operation | built-in-function | frozenset | file_handling | global-variable | logical-operation | encapsulation | basic | bitwise-operator | postfix | class-and-instance-variable | inherit | tuple | string-concatenation | design-principle | shallow-copy | round-function | regex | arithmetic-expression | string-manipulation | boolean | parameter | input | file | formal-and-actual-parameter | functions | datatype | constructor | asyncio | function | string-method | control-flow | id-function | overflow | gil | range | type_conversion | attribute | update | floating-point-precision | string-slicing | oop | sys-module | input-function | namedtuple | mapping-function | int | list-indexing | list-method | expression | tuple-unpacking | zfill-function | assignment-operator | raise | thread | math | namespace | while-else-loop | import-method | global-variable | lambda | operator-or | rollback | sys | escape-operator | matrix | control-statement | collection | input-function | list-join | string-formatting | compute | function-and-scope | magic-method | default-mutable-argument | object-attribute | invalid-list | list-comprehension | string | join | boolean-and-non-boolean | python | methods | comparison | pep | exception-handling | array | loops | exponentiation | split | global | stack | identity-operator | identifier | integer | operand | print-statement | application | version-check | type-conversion | exception | class-and-inheritance | __all__-attribute | filter | round | arithmetic-operation | recurssion | syntax-error | comprehension | file-handling | debugging | access-modifier | head-and-tail | nested-loop | type-conversion | pandas | sum-function | module | generators | math-copysign | mysql | list-comprehension | package-management | comment | command-line-parsing | __future__ | exception-handling | list | lambdas | indexing | string-method | operator | center | mutable | virtual-environment | name-mangling | lambda-function | oops | operations | multithreading | choice | multiprocessing | asyncio-module | dicts | logical-operator | bitwise | python-module | return-statement | while-loop | iterable | datetime | typeerror | sorted | version | syntaxerror | bitwise-operator | for | benefit | numpy | polymorphism | list-vs-tuple | min-function | max-min | sum() | objects | data-type | list-operation | classes | complex-number | syntax-error | counter-function | enumerate() | string-iteration | iterator | turtle | generators-in-python | mathematical-function | copy | format | slicing | list-slicing | __init_subclass__ | memory-management | inheritance | data-structures | list-mutation | identity-operator | conversion | operator-overloading | yield | def | zip-function | slice | immutable-data-type | sorting | expand-tab | with-statement | interpreter | conditional-statement | swapping | mathematics | counter | control-flow | match | touples | syntax | immutability | set | python-repl | goto-function | method | class-and-object | recursion | threading | string-slicing | error-handling | complex | software-design | call | random-function | keyword | data-structure | heap-memory ...