hi I want to write this code in do while or if else, or any other way except for loop. here is the code
for i in range(65,90): for j in range(65,90): for k in range(65,90): token=chr(i)+chr(j)+chr(k) block = ((i<<16)+(j<<8)+(k)) cblock = pow(block,e,n) table[token]=cblockcan anyone please help me to write this in anyother format? thanks
Why are you looking to get away from the for loop? I believe that is the easiest and most straight forward way to do this....
Note: range(65,90) will only give you letters A through Y. You're missing out on the 'Z'; although perhaps that's what you had intended...