[Tutor] Databases in Python

aug dawg augdawg09 at gmail.com
Tue Aug 24 19:55:14 CEST 2010


Now it says that the variable adder is not defined. Does anyone know about
this?


On Tue, Aug 24, 2010 at 1:40 PM,
<christopher.henk at allisontransmission.com>wrote:

>
> aug dawg wrote on 08/24/2010 01:13:01 PM:
>
>
> > It's not catching that, but I haven't gotten there with the bugs yet. One
> more thing I can't figure out.
>
> >
> > line 11
> >     select-db = raw_input("Which database to add to? >> ")
> > SyntaxError: can't assign to operator
> >
> > I think it might be the >> at the end, but when I try it in the Python
> interpreter, it works fine.
> >
> The error is triggered by your variable name.  You can't use a dash, Python
> is interpreting that as a minus sign.  You can use the underscore "_"
> instead.
>
> more here:
> http://www.pasteur.fr/formation/infobio/python/ch02s03.html
> http://docs.python.org/reference/lexical_analysis.html#identifiers
>
>
> Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100824/40ba73b3/attachment.html>


More information about the Tutor mailing list