PYTHON 3
Does not output as a nice looking triangle though.
number = int(input("Enter n rows: "))
triangle = [[1],[1,1]]
if number == 1:
del triangle[-1]
number = number - 2
current = 1
for x in range(1, number+1):
row = [1]
for y in range(current)...