Apologies in advance if this is in the wrong thread. Please can somebody help with maybe a hint where I am going wrong please. I am new to python and currently trying to solve a problem and been stuck on it for days. The problem is to create triangles that increase by 20 and sit directly on top of each other. The top of each triangle should be exactly halfway along the baseline of the triangle above but it veers to the left or right.
Any help would be appreciated thanks
from turtle import*
for shape in range(1,5):
for sides in range(1,4):
#move fd to next position of next triangle penup() left(60) fd(20+shape*20) left(30) left(90) fd(shape/2+20) right(180) pendown ()