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