Level 1 : The output of this Python code would be.


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

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