[Tutor] password cipher

Alan Gauld alan.gauld at btinternet.com
Sat May 7 00:59:31 CEST 2011


"pwnedomina" <pwnedomina at gmail.com> wrote

>> Can you write Python code already? Or are you a complete beginner?
>> Do you know how to produce the table by hand
>> - using pen and paper say?
>>
>>
> im a beginner, can you show a sample of code in order to do this 
> task?

I could but it may not mean anything to you.
Can you write code to print a table of any kind?
For example can you print out a multiplication table,
say the 3 times table, like this:

1 x 3 = 3
2 x 3 = 6
3 x 3 = 9
4 x 3 = 12
5 x 3 = 15

If you can do that then it is very little extra work to print out the
encoding table provided you know the contents. So can you
do that initial step of printing the 3 times table?

Show us your code. That will give us an idea of where your
understanding and skill level lies.

PS. There is code in my tutorial for printing multiplication
tables if you are really stuck. Try the end of the
"more sequences" topic for a start...

HTH,

-- 
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/




More information about the Tutor mailing list