Level 9 : Identify the issue in the code below:


d = {[1, 2]: 'X', (3, 4): 'Y'}

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