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


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

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