Level 9 : What will be printed?


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

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