| | |
control structure
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2008
Posts: 2
Reputation:
Solved Threads: 0
hi
I want to write this code in do while or if else, or any other way except for loop. here is the code
can anyone please help me to write this in anyother format?
thanks
I want to write this code in do while or if else, or any other way except for loop. here is the code
Python Syntax (Toggle Plain Text)
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]=cblock
thanks
•
•
•
•
hi
I want to write this code in do while or if else, or any other way except for loop. here is the code
can anyone please help me to write this in anyother format?Python Syntax (Toggle Plain Text)
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]=cblock
thanks
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... ![]() |
Similar Threads
- goto control structure in the works for php 5.3 (PHP)
- Using a control to just call the subroutine (VB.NET)
- perl script help re: scope/structure for noob (Perl)
- How to improve program with string compairing? (C++)
- How to delete a data structure in Builder 6.0? (C++)
- Photo Gallery Control (ASP.NET)
Other Threads in the Python Forum
- Previous Thread: find n+2?
- Next Thread: problems with glutInit and related functions
| Thread Tools | Search this Thread |
address anydbm app beginner changecolor cipher class conversion coordinates corners curves definedlines development dictionary dynamic events examples excel feet file float font format ftp function generator getvalue gui handling homework images import input ip java keycontrol line linux list lists loan loop maintain maze millimeter mouse mysqldb number numbers output parsing path permissions port prime programming projects py2exe pygame pymailer python queue random rational raw_input recursion recursive scrolledtext searchingfile shebang slicenotation split string strings table tails terminal text thread threading time tkinter tlapse tooltip tuple tutorial type ubuntu unicode url urllib urllib2 variable variables vigenere web windows wx.wizard wxpython xlwt






