Level 10 : What does this output?


a = [1, 2, 3]
b = a * 2
b[2] = 99
print(a, b)

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