Level 1 : What does the following output?


print(bool(0), bool([]), bool({}), bool(""))

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