Level 10 : What will be printed?


a = [1, 2]
b = a + [a]
b[2][0] = 99
print(a, b)

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