Level 10 : What does the following dictionary operation return?


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

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