Hello! There is a key that is written vertically in 1 column “HELLO.” It is necessary to fill the letters vertically alphabetically as in the table.
The matrix should be square (same number of rows than columns). Can you help please. I placed the key vertically, but I cannot horizontally write the letters of the alphabet.
key='HELLO'
f=[]
count = 1
A = [['' for i in key] for i in key]
for i in range(len(A)):
A[i][0]=key[i]
for i in range(0,len(A)):
for j in range(0,len(A[i])):
if A[i][0]==key[i]:
n=count+ord(key[i])
A[j][i]=n