Python Star Pattern 3

Last Updated:

Python Star Pattern 3

Try to print the following star pattern using Python.

Print This Output
    *
   **
  ***
 ****
***** 

Source Code

Python Compiler
for i in range(5, 0, -1): for j in range(i, 1, -1): print(" ",end="") for j in range(i, 6): print("*",end="") print()

Share this Page

Meet the Author