Level 5 : What is the output?


print(sum(range(1, 5)))

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