Level 1 : What is the result?


from decimal import Decimal
print(Decimal('0.1') + Decimal('0.2') == Decimal('0.3'))

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