[Tutor] Maths: getting degrees from radians (or am I wrong?)
Terry Carroll
carroll at tjc.com
Wed Sep 21 07:59:56 CEST 2005
On Tue, 20 Sep 2005, R. Alan Monroe wrote:
> > >>> math.degrees(_) <--- in all my time on tutor
> I have never noticed
> this underscore trick
> before
That *is* cool.
I've usually done something like:
>>> a+ 3*b +(5*ht/9) * 32
9936254.2
Then use the up-arrow key to get
>>> a+ 3*b +(5*ht/9) * 32
and edit it toL
>>> x = a+ 3*b +(5*ht/9) * 32
>>> foo(x)
The underscore's a nice stepsaver. And limiting it to the interpreter
avoids perlish abuse.
More information about the Tutor
mailing list