fork download
  1. # your code goes here
  2. for i in range(5):
  3. for j in range(i):
  4. print(" ",end="")
  5. for k in range(5,i,-1):
  6. print("*",end="")
  7. print(end="\n")
Success #stdin #stdout 0.02s 27648KB
stdin
Standard input is empty
stdout
*****
 ****
  ***
   **
    *