Answer:
See explaination
Step-by-step explanation:
triangle_char = input('Enter a character:\\')
triangle_height = int(input('Enter triangle height:\\'))
print('')
for i in range(triangle_height):
for j in range(i+1):
print(triangle_char, end = " ")
print()