Beginner Question

Erik Max Francis max at
Fri Mar 28 04:43:48 CET 2003

Kevin Reeder wrote:

> And that may be what they're getting at as a way to make me analyze
> the
> process, but isn't the sequence assignment more or less an abbreviated
> way
> of doing the same thing? I've been thinking that there is some other
> way that is eluding me.

They're just asking you for another way of doing a swap rather than
tuple assignment.  Using a temporary variable is certainly one way (and
is the typical way of doing it in languages which don't support
something like automatic sequence packing/unpacking like Python does).

 Erik Max Francis / max at /
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ It's soulful music.  It doesn't necessarily sound like ... soul ...
\__/ Sade Adu Quake III Arena /
 A personal guide to Quake III Arena.

More information about the Python-list mailing list