Appending a List and Recursion (Hamming Distance) - Python 3
问题 I'm supposed to write a program that takes a string of binary code and a number, and outputs all the strings within that hamming distance of the original string. I have a function that does everything, but in the output there are lists within lists. I understand why this is - the function is recursive, and sometimes it will return a list of possible values. The problem is, I don't know how to change it so it outputs complete strings. For example, for a string of "0000" and hamming distance "2