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


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

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