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