Level 9 : What is printed?


x = {"a":1}
y = x
y["b"] = 2
print(x)

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