Level 1 : What does this code output?


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

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