Basic problem - Syntax error

Fredrik Lundh fredrik at effbot.org
Sat Feb 3 16:11:05 EST 2001


Michael Ellwood wrote:
> counter=0
> alphabetpos=0
>
> while counter < 26:
>     cipheralphabet.append(plaintextalphabet[counter:]
> **    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!!

if you cannot figure out what's wrong with the line Python
complains about, look at the line just above it.

(hint: something's missing at the end of the append line

Cheers /F





More information about the Python-list mailing list