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


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

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