https://www.codecademy.com/en/courses/python-intermediate-en-KE1UJ/1/2?curriculum_id=4f89dab3d788890003000096

I promise this is (probably) the last one of these. As always, any advice is appreciated.

```
#print bin(14 & 5)
X = "1110"
Y = "101"
def bitwise_XAND(X, Y):
one = "1"
new_x = X
new_y = Y
list_x = []
list_y = []
together = []
different_length = abs(len(X) - len(Y))
final = ""
if len(X) > len(Y):
for i in X:
together.append("0")
new_y = ("0" * different_length) + Y
elif len(Y) > len(X):
for i in Y:
together.append("0")
new_x = ("0" * different_length) + X
for i in new_x:
list_x.append(i)
for i in new_y:
list_y.append(i)
for i, c in enumerate(new_x):
if c == list_y[i] and c != "0":
together[i] = "1"
for i, c in enumerate(new_y):
if c == list_x[i] and c != "0":
together[i] = "1"
for i, c in enumerate(together):
if c == "0":
together[i] = ""
if c == "1":
break
final = "0b" + final.join(together)
return final
print bitwise_XAND(X, Y)
```