row = 1
while row <= size:
    col = 1
while col < size:
    if col < row:
        print(' ', end=' ')
else:
    print(chr, end=' ')
col = col + 1
print(chr)
row = row + 1
print('')
Fixing code to make a triangle