Level 5 : what is the output of the below program in python?


print(0.2+0.4==0.6)

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