Level 10 : What will this output?


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

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