st = {}
θ=['00','11','22','33','44','55','66','77','88','99','AA','BB','CC','DD','EE',
'FF','GG','HH','II','JJ','KK','LL','MM','NN','OO','PP','QQ','RR','SS','TT',
'UU','VV']
for A in range(len(θ)):
for B in range(len(θ)):
for C in range(len(θ)):
st[f'#{θ[A]}{θ[B]}{θ[C]}'] = ((A*(len(θ)**2))+(B*len(θ))+C)
ck = {v: k for k, v in st.items()}
print(ck[810])
print(st['#00PPAA'])
To embed this project on your website, copy the following code and paste it into your website's HTML: