Nothing wrong with my code (that i know of), but the instructions sort of offers you the challenge of doing this operation outside of the built in bitwise function OR. I wanted to test what I had learned, so I spent the better part of an hour figuring out how to make this work. I would love to hear feedback on how I could have done this better.
Also, Hi All! This website is awesome!
EDIT:: so i apparently misunderstood the instructions when it said "try to do this on your own". Lol, i had fun doing it anyways.
#print bin(14 | 5) # commented out for the following code to be able to fail if i get it wrong fourteen = "1110" five = "101" combined = [fourteen, five] def bitwise_OR(fourteen, five): one = "1" together =  different_length = abs(len(five) - len(fourteen)) final = "" if len(fourteen) > len(five): for i in fourteen: together.append("0") five = ("0" * different_length) + five elif len(five) > len(fourteen): for i in five: together.append("0") fourteen = ("0" * different_length) + fourteen for i, c in enumerate(five): if c == one: together[i] = c for i, c in enumerate(fourteen): if c == one: together[i] = c final = "0b" + final.join(together) return final print bitwise_OR(fourteen, five)