Basic problem - Syntax error

Jay O'Connor joconnor at cybermesa.com
Sat Feb 3 15:30:01 EST 2001


> 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!!


Umm..if this is an accuracte piece of code....yoo forgot to close the
parenthesis on the line before.

It should read

	... [counter:] )   <-close paren

Take care,
-- 
Jay O'Connor
joconnor at cybermesa.com
http://www.cybermesa.com/~joconnor

"God himself plays the bass strings first when He tunes the soul"



More information about the Python-list mailing list