Level 9 : What happens to d?


d = {1: [10, 20], 2: [30, 40]}
e = d.copy()
e[1].append(50)

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