fork download
  1. # your code goes here
  2. n = int(input("별을 몇 줄 찍을까요?"))
  3. st = "*"
  4. em = " "
  5. for i in range(0, n):
  6. emt= em*(n-1)
  7. print(emt+st)
  8. st+="*"
  9. n = n-1
Success #stdin #stdout 0.04s 9368KB
stdin
5
stdout
별을 몇 줄 찍을까요?    *
   **
  ***
 ****
*****