| | |
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 |
advanced aliased bash beginner bits calling casino changecolor class clear command convert corners count csv cturtle cursor def definedlines dictionary digital dynamic dynamically events examples external file float format frange function google gui hints homework i/o iframe import info input java line linux list lists loop matching mouse multiple number numbers obexftp output parsing path port prime programming projects py py2exe pygame pygtk python random rational raw_input recursion return scrolledtext signal singleton skinning stderr string strings subprocess table tails terminal text thread threading time tkinter tlapse tuple tutorial ubuntu unicode urllib urllib2 valueerror variable voip web-scrape whileloop windows word wxpython






