Hi Peter,

> I believe that there is an editor from which you can run your python
> and then drop back to the editor, but I don't know what it is.

I think there's a few.  IDLE, that comes with Python and is introduced
in http://inventwithpython.com/, provides it and syntax-colouring.

Skimming the start of that book I see it introduces variables like

    foo = 42

as a box with 42 in it and `foo' written on the outside;  the
traditional BASIC model but not how Python does things.  Might cause a
little confusion down the line but I suppose it's easy enough to adapt
to the truth later on.

    >>> foo = 42
    >>> bar = 42
    >>> id(foo), id(bar), id(42)
    (22914856, 22914856, 22914856)
    >>> foo = [3, 1, 4, 1, 5]
    >>> bar = foo
    >>> bar[2] = 9
    >>> foo,
    ([3, 1, 9, 1, 5],)
    >>>

Cheers, Ralph.

--
Next meeting:  2012-10-?? 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread on mailing list:  mailto:[email protected]
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to