Level 10 : What does this output?


lst = [1, 2, 3]
lst = [[x for x in lst] for _ in range(3)]
lst[1][2] = 99
print(lst)

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