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


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

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