def triangle_shape(height):
    """
    Display a traingle shape made of x with a certain height

    Args:
        height ([int]): The desired height for the shape

    Returns:
        [str]: A triangle shape made of x
    """
    triangle = ""
    nbEspaces = height - 1
    for indice in range(height):
        triangle += nbEspaces * " "
        triangle += "x" * (indice * 2 + 1)
        triangle += nbEspaces * " "
        if indice < (height - 1):
            triangle += "\n"
        nbEspaces += -1
    return triangle