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