Level 10 : What will the following code output?


t = ((1, 2), (3, 4), (5, 6))
print(sum(t[0]))

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