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