Create the following pattern using Python
*
**
***
****
*****
for i in range(1, 6):
print(' ' * (6-i),end='')
print('*' *( i))
note
To compile and run the program, you can use the following commands:
python3 foo.py
Create the following pattern using Python
*
**
***
****
*****
for i in range(1, 6):
print(' ' * (6-i),end='')
print('*' *( i))
To compile and run the program, you can use the following commands:
python3 foo.py