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