[Tutor] Writing program: To Do List in Python 3.0

Rafael Knuth rafael.knuth at gmail.com
Thu Sep 26 14:18:08 CEST 2013


Dave,

thank you so much, I will proceed as you suggested.
Currently, I am not 100% sure I get it right, but I will start iterating
now.

All the best,

Rafael

   <snip>
> >  Can you advise how I should proceed in order to
> > improve my To Do List program based on the code I wrote so far
> > (insofar it's usable at all) ..? Weirdly, writing and reading to files
> > is not covered in those tutorials I am working with.
>
> <sinip>
> First comment:  learn to use functions.  Don't put anything in top-level
>
> Your functions should usually take paramaters and return their results.
> Avoid writable global values.  If you need to return more than one
> results, learn to use tuples for that, with automatic tuple unpacking
> where appropriate.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130926/3315418a/attachment.html>


More information about the Tutor mailing list