Diamont

in #italast month

def rows(letter):

list\_start = ['A','B','C','D','E','F','G','H','I','J', 'K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']

row\_conf=[]

n = list\_start.index(letter)

for i in range(n+1):

    if i == 0:

        row\_conf.append(n\*' ' +'A' +n\*' ')

    else:

        row\_conf.append((n-i)\*' ' +list\_start[i]+(2\*i-1)\*' '+list\_start[i]+(n-i)\*' ')

if n > 0:

    row\_c = row\_conf[-2::-1]

    row\_conf += row\_c 

return row\_conf