Hi everyone I have this task: Write a python program that takes two numeric inputs x and y.

a) [5 pts] The program should take numeric inputs continuously.

b) [10 pts] The program should ensure the range of x and y is between 0 and 1. If either one of the input values is out of range, smaller than 0 or greater than 1, then the program should quit.

c) [10 pts] Implement XOR gate, where the program returns 1 if both x and y values are different; otherwise, it returns 0.

The program should work for floating-point values.

For example,

If x = .3 and y = .3, then xor output should be 0

If x = .6 and y = .3, then xor output should be 1

If x = .3 and y = .6, then xor output should be 1

If x = .6 and y = .6, then xor output should be 0

So far I have done this but I still keep getting errors

```
x=float(input("enter x: "))

y=float(input("enter y : "))
while True:

  if(x>=0 and x<=1) and (y>=0 and y<=1):
        def XOR (x, y):
            if x != y:
              return 1
            else:  return 0
  print(XOR(x,y))
continue 
  elif(x>=0 and x<=1) and (y>=0 and y<=1): 
        break

```

I get this error

```
 File "<ipython-input-337-80599671f24c>", line 13
    elif(x>=0 and x<=1) and (y>=0 and y<=1):
    ^
IndentationError: unexpected indent

```