Level 3 : What is the output for the below code?


print({True: 'yes', 1: 'no', 1.0: 'maybe'})

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