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


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

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