#Python 2, 89 88 87 85 83 named / 81 unnamed
Python 2, 89 88 87 85 83 named / 81 unnamed
f=lambda n:1%n*(" "+n/2*4*"_"+"\n")+(" /\ "*n)[:2+2*n]+"\n"+("/__\\"*n)[:n-~n+n%2] (Thanks to @orlp for a byte, and @xnor for another three)
This is a function which takes in an int n and returns the triangles as a string using the row-by-row approach.
e.g. print f(10) gives
____________________ /\ /\ /\ /\ /\ / /__\/__\/__\/__\/__\/ For the first row, instead of (n>1)* we use 1%n*, since 1%n is 0 if n == 1 and 1 if n > 1.