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