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