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