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