Level 9 : What will the following code output?


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

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