chr = input('Please enter the drawing character: ')
row = 1
while row <= size:
    col = 1
while col < row:
    print(' ', end=' ')
col = col + 1
col = 1
while col < size - row + 1:
    print(chr, end=' ')
col = col + 1
print(chr)
row = row + 1
print('')
Fixing code to make a triangle