Level 1 : What does this code output?


t = ((1, 2), (3, 4))
print({t: "value"})

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