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