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


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

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