Basic problem - Syntax error

Michael Ellwood michael.ellwood at
Sat Feb 3 21:30:28 CET 2001

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:

ciphertext="mhily lza zbhl xbpzxbl mvyabuhl hwwpbz jshbkpbz jhljbz kpjabt
hyjhubt lza ulbayvu"


while counter < 26:
**    counter = counter + 1

print cipheralphabet

Python tells me there is a syntax error on the starred line - can some one
please explain why!! Im so annoyed - this is such a basic problem!!


More information about the Python-list mailing list