Tue Aug 10 2021
Star Pyramid
Python Programming5097 views
File Name: star-pyramid.py
#!/usr/bin/evn python
for i in range(1,6):
# String repetition using '*'
print (' '*(5-i),'*'*(i*2))
#***** Output *****
# **
# ****
# ******
# ********
# **********
Reference:
Author:Geekboots