Not much to say. After much Googling, I created a function that I thought would work. It does not work
def decToBin(number): binary =  while number > 0: if number % 2 != 0: binary.append(1) if binary % 2 == 0: binary.append(0) number = number / 2 if number == 0 and len(binary) < 8: binary.append(0) if len(binary) == 8: binary.reverse() self.say(binary)
I put the self.say in there to check the function, but my hero never says anything. Can anyone give me a small hint that will put me on the path to fix my code? I feel like I’m on the right track, but I just can’t figure it out.