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