Level 9 : What is the output of the following code?


List = [True, 50, 10]
sum(List)

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