*******************************.******************************* *****************************...***************************** ***************************.....*************************** *************************.......************************* ***********************.........*********************** *********************...........********************* *******************.............******************* *****************...............***************** ***************.*******.*******.*************** *************...*****...*****...************* ***********.....***.***.***.....*********** *********.......*...*...*.......********* *******.........*******.........******* *****...........*****...........***** ***.............***.............*** *...............*...............* ******************************* ***************************** *************************** ************************* *********************** ********************* ******************* ***************** *************** ************* *********** ********* ******* ***** *** *
This is a simple Python 3 script that generates nested triangles.
Simply input the size of the base of the triangle(must be an odd integer) and how many times you'd like for it to nest.
The nesting works by putting the previous nested triangle into the new one.