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


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

Author: KaivalyaG | Tags: function | 1736+ Python FAQs | Share
implementation | math | pickling-&-unpickling | virtual-environment | random-function | identifier | immutability | string-iteration | goto-function | method | file_handling | tuple-unpacking | decimal | odd-number | touples | magic-method | matplotlib | string-concatenation | min-function | assignment-operator | logical-operator | memory | return-statement | context-manager | data-structure | function-and-scope | regex | format | asyncio-module | mathematics | while-loop | sys | call | operator-and | module | mutable | collections | destructor | input-function | oops | heap-memory | function-argument | design-principle | comprehension | while-and-for-loop | sorting | escape-operator | pseudocode | operations | list-vs-tuple | operators | control-statement | keyword | data-structure | __all__-attribute | expand-tab | iterator | exponentiation | def | higher-order-function | bitwise-operator | class-and-object | class-and-instance-variable | formal-and-actual-parameter | random | logical-operator | operator | counter-function | parameter | python-django | package-management | syntax-error | integer | numeric | generator | functions | boolean-and-non-boolean | turtle | access-modifier | class | min-max-function | sum-function | list-comprehension | math-copysign | application | indentation | typeerror | mathematical-function | matrix-list-comprehension | tuple | indexing | control-flow | sum() | assert | debugging | array | round-function | data-type | update | generators | comparison | functional-programming | invalid-list | print | threading | iterable | expression | command-line-parsing | global-variable | python_version | split | operator-or | multiple-inheritance | error-handling | head-and-tail | raise | multithreading | list-mutation | conditional-statement | staticmethod | string-formatting | list-indexing | append | inheritance | __future__ | asyncio | logical-operation | async | python-history | loop-control | built-in | bitwise-operator | overflow | with-statement | nested-loop | syntax | python-repl | pep | counter | generators-in-python | bitwise | classes | zfill-function | recurssion | fabs-function | slicing | interpreter | comment | shallow-copy | benefit | floating-point-precision | string-method | exception-handling | global-keyword | datetime | recursion | class-and-inheritance | name-mangling | import-method | slice | zip-function | type_conversion | control-flow | binary-operation | default-mutable-argument | python-module | identity-operator | conditional-statement | enumerate() | file | error | scientific-notation | string-slicing | encoding | factorial-function | dictionaries | data_structure | software-design | feature | regular-expression | type-conversion | choice | precedence | list | function | polymorphism | map-function | attribute | list-slicing | while-else-loop | file-handling | python | installation | zip | copy | encapsulation | list-operation | complex | range | multiprocessing | loops | conversion | precedence-and-associativity | objects | datatype | input | operand | filter-function | sys-module | complex-number | __init_subclass__ | sorted | set | string-formatting | lambda | type-conversion | set-operation | lambda-function | arithmetic-operation | file-handling | round | version | input-function | string-manipulation | numpy | string-method | else-statement | stack | exception | init | yield | namedtuple | constructor | mysql | static-method | global | list-join | matrix | statement | library | virtual-environment | max-min | data-structures | global-variable | memory-management | string-slicing | version-check | dicts | postfix | filter | deep-copy | join | lists | exception-handling | list-comprehension | condition | mapping-function | pandas | identity-operator | operator-overloading | basic | frozenset | namespace | inherit | dictionary | thread | data-type | descriptors | built-in-function | boolean | variable | int | print-statement | binary | string | built-in-function | match | methods | immutable-data-type | syntaxerror | collection | gil | oop | lambdas | syntax-error | decorator | swapping | arithmetic-expression | rollback | loop | compute | docstring | object-attribute | for | center | id-function | list-method ...