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