Create the following pattern using Python
*
**
***
****
*****
for i in range(1, 6):
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('*' * i)
To compile and run the program, you can use the following commands:
python3 foo.py