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