Level 1 : What will be the output of the following Python function?


sum(2,4,6)
sum([1,2,3])

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