************
**********
********
******
****
**
code for the above:
j=0
k=12
for i in range(6):
print(' '*(j),end=' ')
print('*'*k,end=' ')
j+=1
k-=2
print()
But I need to print the above pyramid using recursion and make sure both the spaces and asterisks are aligned as shown.