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


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

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