I hate that I have to ask this, but I can't for the life of me figure out how to make this work. The program is supposed to ask for an input of an odd integer and then create an upside down pyramid with the first row containing the amount of asterisks as the number, and the last row having only one, centered asterisk. I've managed to figure out most of it, but my asterisks refuse to line up centered no matter what I try. I've looked at the other topics similar here, and tried to use them but still cannot figure it out. I'm not sure why 'i' is being used, but saw it on another post and it looked marginally better than what I had before.
Here is my code, I have tinkered with it quite a bit to no avail.
x=input('Enter an odd number width: ')
x_int = int(x)
print('Triangle:')
for i in range(x_int+1, 0, -1) :
numwhite = (x_int - i)/2
white_int= int(numwhite)
print(' '* white_int + '*'*i)
Which outputs (input 13):
Triangle:
**************
*************
************
***********
**********
*********
********
*******
******
*****
****
***
**
*
I want it to look something like (input 7)
*******
*****
***
*
range(x_int+1, 0, -2).