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
*
**
***
****
*****
Published by Aravind Vasudevan
Estimated reading time: 1 min
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
*
**
***
****
*****