Level 1 : What does the following output?


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

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