Level 10 : What will be the output of the following code snippet?


dict1 = {'first' : 'sunday', 'second' : 'monday'}
dict2 = {1: 3, 2: 4}
dict1.update(dict2)
print(dict1)

Author: SandhyaR | Tags: update | 1736+ Python FAQs | Share
identifier | zip | copy | exception-handling | type-conversion | stack | mathematical-function | binary-operation | destructor | keyword | syntaxerror | __init_subclass__ | file_handling | decimal | random | split | operator-and | comprehension | pep | fabs-function | sum-function | generator | virtual-environment | int | multiprocessing | asyncio | frozenset | python-repl | math-copysign | identity-operator | data-structures | math | pickling-&-unpickling | logical-operation | touples | control-statement | tuple-unpacking | match | encapsulation | function | global-keyword | multiple-inheritance | constructor | goto-function | comment | operator-overloading | def | exception-handling | regular-expression | data_structure | name-mangling | loop | functional-programming | sorted | assert | string-method | syntax | async | installation | class | filter | list-mutation | boolean-and-non-boolean | range | collection | postfix | datatype | control-flow | loop-control | gil | class-and-object | list | type_conversion | scientific-notation | class-and-instance-variable | class-and-inheritance | round | min-function | operator | list-comprehension | data-type | staticmethod | sys | return-statement | python-history | else-statement | operators | boolean | matplotlib | lists | list-comprehension | control-flow | exponentiation | threading | bitwise-operator | heap-memory | iterator | memory-management | operations | choice | string-manipulation | mysql | docstring | variable | methods | __all__-attribute | logical-operator | logical-operator | namedtuple | file | sys-module | enumerate() | binary | turtle | multithreading | namespace | indexing | generators-in-python | higher-order-function | string-slicing | python-django | file-handling | software-design | interpreter | exception | while-else-loop | expression | typeerror | collections | counter-function | inheritance | dictionary | built-in-function | deep-copy | odd-number | numpy | dictionaries | rollback | version-check | pandas | max-min | python_version | nested-loop | error-handling | complex-number | tuple | encoding | objects | functions | list-operation | version | thread | memory | escape-operator | polymorphism | asyncio-module | magic-method | basic | arithmetic-expression | regex | floating-point-precision | bitwise-operator | input | python | virtual-environment | generators | call | string-method | oops | comparison | __future__ | datetime | yield | command-line-parsing | slicing | error | for | static-method | feature | identity-operator | package-management | format | recurssion | zfill-function | append | decorator | string | slice | parameter | join | classes | function-argument | recursion | implementation | list-method | string-formatting | attribute | operand | syntax-error | access-modifier | function-and-scope | array | debugging | library | complex | condition | update | bitwise | mutable | syntax-error | input-function | operator-or | file-handling | lambda-function | global | formal-and-actual-parameter | mathematics | matrix | filter-function | pseudocode | import-method | counter | expand-tab | data-type | python-module | indentation | precedence | input-function | list-vs-tuple | design-principle | string-slicing | immutability | statement | while-loop | invalid-list | conversion | method | data-structure | string-formatting | while-and-for-loop | arithmetic-operation | conditional-statement | set-operation | map-function | shallow-copy | random-function | swapping | global-variable | application | data-structure | string-concatenation | sum() | head-and-tail | list-indexing | sorting | lambdas | with-statement | module | numeric | matrix-list-comprehension | global-variable | assignment-operator | raise | integer | default-mutable-argument | min-max-function | iterable | built-in-function | immutable-data-type | list-join | context-manager | inherit | dicts | precedence-and-associativity | zip-function | string-iteration | compute | built-in | type-conversion | factorial-function | print-statement | oop | overflow | object-attribute | loops | list-slicing | benefit | conditional-statement | set | mapping-function | round-function | print | descriptors | center | lambda | id-function | init ...