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