Level 10 : What does the following dictionary operation return?


d = {(1, 2): 3, [4, 5]: 6}
print(d)

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