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