1) My first problem is how to apply the math with the symbol (*) in str form.
2) My second problem is how do I make a triangle like this
*
**
***
****
*****
This is my code so far
def triangulo():
simbolo='*'
for i in range(5):
simbolo+=simbolo
print(simbolo)
triangulo()
OUTPUT:
**
****
********
****************
********************************