Level 1 : What does the following output?


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

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