Level 9 : What will be the output of the below python code


['f', 't'][bool('spam')]

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