Diamond Star while loop

Hey guys, I am trying to attempt the diamond star challenge…

Can you see how the above example works? As an exercise, try printing the following pattern using a while loop (Hint: use string concatenation):

          *
         **
        ***
       ****
      *****
     ******
      *****
       ****
        ***
         **
          *

I cannot figure it out and I feel really stupid lol any help

Hints

You can multiply chars:

a = '*' * 5 # a == "*****"

You may need rjust() and ljust() methods.

The way i solve it by adding
blank_space = " " # 5 blank space
line = “*”

do while 6 loop of adding blank_space and line
each iteration line+="*" and blank_space minus one blank space

then create another loop vice versa

my solution like this:

line = '*'
spacing = '      '

while len(line) < 6:
    print(spacing,line)
    line += "*"
    spacing = spacing[:-1]

while len(line) > 0:
    print (spacing,line)
    line = line[:-1]
    spacing += ' '

sorry if im not good at explaining T.T