Basic problem - Syntax error
chris at onca.catsden.net
chris at onca.catsden.net
Sat Feb 3 15:33:34 EST 2001
On Sat, 3 Feb 2001, Michael Ellwood wrote:
> Im writing a programme to decrypt a casaer cipher. Im using a while loop
> with a counter, and when the counter exceeds a certain value , the loop
> stops and the alphabet generated is printed eg:
>
> plaintextalphabet="abcdefghijklmnopqrstuvwxyz"
> ciphertext="mhily lza zbhl xbpzxbl mvyabuhl hwwpbz jshbkpbz jhljbz kpjabt
> hyjhubt lza ulbayvu"
>
> counter=0
> alphabetpos=0
>
> while counter < 26:
> cipheralphabet.append(plaintextalphabet[counter:]
> ** counter = counter + 1
>
> print cipheralphabet
You're missing a ) on the line beforehand.
("`-/")_.-'"``-._ Ch'marr, a.k.a.
. . `; -._ )-;-,_`) Chris Cogdon <chmarr at furry.org.au>
(v_,)' _ )`-.\ ``-'
_.- _..-_/ / ((.' FC1.3: FFH3cmA+>++C++D++H++M++P++R++T+++WZ++Sm++
((,.-' ((,/ fL RLCT acl+++d++e+f+++h++i++++jp-sm++
More information about the Python-list
mailing list