def doubleBasePalindromes(UPPER_BOUND):
    number = 1
    DBP = []
    while (number < UPPER_BOUND):
        if isPalindromic(number):
            DBP.append(number)
        number += 1
    pureDBP = DBP.copy()
    sumDBP = sum(DBP)
    for (i, e) in enumerate(DBP):
        DBP[i] = (e, toBinary(e))
    return (sumDBP, pureDBP, DBP)
def doubleBasePalindromes(UPPER_BOUND):
    number = 1
    DBP = []
    while (number < UPPER_BOUND):
        if isPalindromic(number):
            DBP.append(number)
        number += 1
    pureDBP = DBP.copy()
    sumDBP = sum(DBP)
    for (i, e) in enumerate(DBP):
        DBP[i] = (e, toBinary(e))
    return (sumDBP, pureDBP, DBP)