Cows and Bulls Recently I was asked to help out with a Python implementation of the classic guessing game "Cows and Bulls". So here is my solution in Python3, with liberal comments to describe the logic.