Python: sort a list and change another one consequently

Posted by terabytest on Stack Overflow See other posts from Stack Overflow or by terabytest
Published on 2010-04-28T20:41:21Z Indexed on 2010/04/28 20:47 UTC
Read the original article Hit count: 245

Filed under:
|
|

I have two lists: one contains a set of x points, the other contains y points. Python somehow manages to mix the x points up, or the user could. I'd need to sort them by lowest to highest, and move the y points to follow their x correspondants. They are in two separate lists.. how do I do it?

© Stack Overflow or respective owner

Related posts about python

Related posts about list