Star pyramid using string repetition in Python

To creating star pyramid in python required for loop. But in your program we use for loop and string repetition features of python, which minimize the code in just two line. Find the code for star pyramid using string repetition in python.

https://www.geekboots.com/python/star-pyramid

Comments