Python Code for a Binary Conversion Game