x = float(input("Enter float values of x : "))
y = float(input("Enter float values of y :"))

if x > y:
  sub = x-y
else :
  sub = y-x

if sub <= 0.001:
  print("close")
else :
  print("Not close")
     
           
Note: Need to be arranged in compiler after copied
   

 OutPut:

Enter float values of x :20.0036
Enter float values of y :20.0037
close