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


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

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