# Exercice 6.5 Nombre heureux

def is_happy(n):
    """retourne la vérité de "n est un nombre heureux

    Args:
        n (int): entier à tester

    Returns:
        boolean: True si n est un nombre heureux, False sinon

    >>> [i for i in range(10,40) if is_happy(i) ]
    [10, 13, 19, 23, 28, 31, 32]
    >>> [i for i in range(310,340) if is_happy(i) ]
    [310, 313, 319, 320, 326, 329, 331, 338]
    """
    # think recursive
    # return True for base case
    # return False for base case 
    # conversion to string helps for iterating over digits
    # a builtin function may be used to sum elements of a list
    return False