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