def get_digits(number):
    """Get a dictionary which indicates which digits are in number."""
    n = str(number)
    return {0: '0' in n,
            1: '1' in n,
            2: '2' in n,
            3: '3' in n,
            4: '4' in n,
            5: '5' in n,
            6: '6' in n,
            7: '7' in n,
            8: '8' in n,
            9: '9' in n}