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


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

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