LearnPy Hub
← Modules & the Standard Library problems
Easy

Close Enough?

Read two decimal numbers and print math.isclose(a, b). (0.1 + 0.2 and 0.3 count as close.)

Input

Two numbers.

Output

True or False.

Sample 1

Input
0.30000000000000004
0.3
Output
True

Sample 2

Input
1
1.1
Output
False
solution.py
Output appears here
Close Enough? · Python practice problem · LearnPy Hub