I am trying to generate custom alpha numeric sequence. The sequence would be like this :
AA0...AA9 AB0...AB9 AC0...AC9..and so on..
In short, there are 3 places to fill..
On the first place, the values can go from A to Z.
On the second place, the values can go from A to Z.
On the last place, the value can go from 0 to 9.
Code :
s= list('AA0')
for i in range(26):
for j in range(26):
for k in range(10):
if k<10:
print(s[0]+s[1]+str(k))
s[1]= chr(ord(s[1])+1)
s[0]= chr(ord(s[0])+1)
I was able to generate sequence till AZ9 and then I am getting below sequence.. it should be BA0...BZ9..
B[0
B[1
B[2
B[3
B[4
B[5
B[6
B[7
B[8
B[9
B\0
B\1
B\2
B\3
B\4
B\5
B\6