[Tutor] Creating To Do List Program - Question
Steven D'Aprano
steve at pearwood.info
Tue Oct 1 04:04:51 CEST 2013
On Mon, Sep 30, 2013 at 03:00:08PM +0200, Rafael Knuth wrote:
> I mean, my giant print
> statement was really ridiculous to say the least but it did what I
> wanted the program to do - adding items to the To Do List and printing
> that list.
But no it didn't! It just *printed* stuff you wanted to do, it didn't
actually do them. That's like the difference between writing down the
sentence:
Today I went to the store and bought milk.
and *actually* going to the store and buying milk.
> > Are you using Python 3.3, under Windows?
>
> Python 3.0 under Windows.
If you have the opportunity to upgrade, I strongly recommend that you
use Python 3.3 instead. It is much better than older 3.x versions, and
3.0 in particular is buggy and not officially supported any longer.
> I worked with text files yet, I have to admit I haven't worked with
> binary files though - and I don't know yet what they are. But I will
> figure that out.
Technically, *all* files are binary files. That just means that they are
stored on the disk as zeroes and ones. But when people talk about "text
files" and "binary files", what they usually mean is "files where we
interpret those zeroes and ones as code for letters of the alphabet" and
"files where we interpret those zeroes and ones as code for numbers."
There's a bit more to it than that, but it will do to start.
--
Steven
More information about the Tutor
mailing list