def nombre_de_dígits (nombre):
    return len(str(nombre))

def dígit_gran_petit (nombre):
    nombre = str(nombre)
    return max (nombre), min(nombre)

def conté_dígit (nombre, digit):
    nombre = str(nombre)
    digit = str(digit)
    return digit in nombre

def compta_dígits  (nombre, dígit):
    nombre = str(nombre)
    dígit = str (dígit)
    return nombre.count(dígit)

def conté_dígit_n (nombre, dígit, n):
    nombre = str(nombre)
    dígit = str (dígit)
    return  nombre.count(dígit) >= n

def capicua (nombre):
    nombre = str(nombre)
    return nombre == nombre[::-1]
