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


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

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