Level 10 : What will be the output of the following Python code?


>>> a=(2,3,4)
>>> sum(a,3)

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