[Tutor] Databases in Python

Walter Prins wprins at gmail.com
Tue Aug 24 19:01:43 CEST 2010


On 24 August 2010 17:47, aug dawg <augdawg09 at gmail.com> wrote:

> if searcher in database:
>> # Figure this out.
>>  if "exit database" in command:
>> print "Bye!"
>> sys.exit()
>>
>
The first thing that caught my eye was the "#figure me out" line -- python
is expecting a statement there, a comment doesn't count.  You can use "pass"
for the time being.  (See
http://docs.python.org/reference/simple_stmts.html#grammar-token-pass_stmt)

Walter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100824/9d3f2dcf/attachment.html>


More information about the Tutor mailing list