Header Ads

Responsive Ads Here

Pyramid star series with python

 Pyramid Star Series


stars = int(input("How many columns do you want of stars: "))

for i in range(stars, -1, -1):
    print(" " * i, "* " * (stars - i))


Output





YouTube Video: https://www.youtube.com/watch?v=Y1WvBPZQ_Ag

Powered by Blogger.