Computer Science, asked by sanjaymishra8130, 10 months ago

Write a program to generate the following sequence
1:
*
*
**
***
****
*****
2:
*****
****
***
**
*

Answers

Answered by abhash7
0

Answer:

7gdyrvdurvdj djrvdi4g du3chdg du4c

Answered by charlie1505
1

Answer:

1)

for i in range(0, 5):

for j in range(0, i+1):

print("* ",end="")

print()

2)

for i in range(0, 5):

for j in range(5, i, -1):

print("* ", end="")

print()

Similar questions