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