Level 10 : Output of this code?


lst = [[0]*3]*3
lst[0][0] = 1
print(lst)

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