This is my first blog. Here’s a line of python to generate an asterisk triangle:

>>> print("\n".join(["*" * i for i in range(int(input()) + 1)]))
 5

 *
 **
 ***
 ****
 *****