[Tutor] how to edit program files in Python?

Dominik George nik at naturalnet.de
Thu Dec 19 23:37:41 CET 2013


Hi,

> My son and I just opened "Python for Kids" and we're working our way
> through the lessons.  Sometimes he mistypes the lines and hits return
> and discovers after that that he made a mistake in the line.  But,
> when we try to correct the line, we are not able to.  We just get that
> loud beepy sound telling us it's not possible.

That's because you are using some interpreter (or wrapper) that is not
suited for the job (maybe not suited for anything, really ;)). I guess
this thing might be IDLE. I am not going into detail about why I do not
see IDLE fit for learning Python ...

> So... is there any way to go back up to the previous line and correct
> the syntax?  As it is now we are starting the entire file over.  It's
> really cumbersome.  Is it supposed to be this way?

... and I won't go into detail about why I do not see the book you are
... reading fit for learning Python ;).

To get to the core of your question: Just choose your favourite text
editor, write the code in a text file, save it as <something>.py and
then execute that script.

Cheers,
Nik

-- 
* concerning Mozilla code leaking assertion failures to tty without D-BUS *
<mirabilos> That means, D-BUS is a tool that makes software look better
            than it actually is.

PGP-Fingerprint: 3C9D 54A4 7575 C026 FB17  FD26 B79A 3C16 A0C4 F296
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 905 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/tutor/attachments/20131219/7fe23bc3/attachment.sig>


More information about the Tutor mailing list