The following code will give you the output you desire:
alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
zero25 = "0" * 25
for idx in range (len (alpha)):
print "%s = (%s1%s)" % (alpha[idx], zero25[:idx], zero25[:25-idx])
Specifically, the output is:
A = (10000000000000000000000000)
B = (01000000000000000000000000)
C = (00100000000000000000000000)
D = (00010000000000000000000000)
E = (00001000000000000000000000)
F = (00000100000000000000000000)
G = (00000010000000000000000000)
H = (00000001000000000000000000)
I = (00000000100000000000000000)
J = (00000000010000000000000000)
K = (00000000001000000000000000)
L = (00000000000100000000000000)
M = (00000000000010000000000000)
N = (00000000000001000000000000)
O = (00000000000000100000000000)
P = (00000000000000010000000000)
Q = (00000000000000001000000000)
R = (00000000000000000100000000)
S = (00000000000000000010000000)
T = (00000000000000000001000000)
U = (00000000000000000000100000)
V = (00000000000000000000010000)
W = (00000000000000000000001000)
X = (00000000000000000000000100)
Y = (00000000000000000000000010)
Z = (00000000000000000000000001)
If you want them separated by commas, this will do the trick:
alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
zero25 = "0," * 25
print "%s = (1,%s)" % (alpha[0], zero25[:49])
for idx in range (1, len (alpha)):
print "%s = (%s,1%s)" % (alpha[idx], zero25[:idx*2-1], zero25[idx*2-1:-1])
outputting:
A = (1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
B = (0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
C = (0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
D = (0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
E = (0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
F = (0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
G = (0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0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