My goal is to produce a simple graphical representation of a set of nested triangles, as shown in Figure 1. The output should consist of 4 equilateral triangles (equal sides, inside angles of 60 degrees). The triangles should have sides of length 20, 40, 60 and 80, respectively. Use a distance of 7 between the bottom horizontal lines of adjacent triangles.
I've seen a post about this on here but the answers were too complicated, as you can see by my code, this is one of my first programs.
from turtle import *
number_of_shapes = 2
for shape in range(1, number_of_shapes + 1):
# Draw A Triangle
for sides in range(1, 4):
forward(10 + shape * 10 )
left(120)
right(90)
forward(7 + shape)
My question is: how do I simply align my triangles inside each other?

