On Thu, Oct 11, 2018 at 10:44 AM Kurian O.S wrote:
> Sort can do that
>
>
> In [2]: list01=['cleve', 'adam', 'yuno', 'pete']
>
> In [3]: list02 = ['pete', 'yuno', 'cleve', 'adam']
>
> In [4]: list02 = sorted(list2, key=list01.index)
>
> In [5]: list02
> Out[5]: ['cleve', 'adam', 'yuno', 'pete']
>
Sort can do that
In [2]: list01=['cleve', 'adam', 'yuno', 'pete']
In [3]: list02 = ['pete', 'yuno', 'cleve', 'adam']
In [4]: list02 = sorted(list2, key=list01.index)
In [5]: list02
Out[5]: ['cleve', 'adam', 'yuno', 'pete']
On Wed, Oct 10, 2018 at 2:31 PM kiteh wrote:
> Hi Justin, sorry tha
Hi Justin, sorry that I may have made my question confusing/ I was
babbling, typing away of the way I am trying to phrase my question.
Let me try again :)
1. Deriving the hierarchy from Outliner
Eg. This is the hierarchical level as seen in my Outliner
|-- base
|--|-- names
|--|--|-- cleve
|--|
On Thu, Oct 11, 2018 at 8:32 AM kiteh wrote:
> Hi everyone,
>
> I have 2 list items which contains the same amount of items, and I am
> trying to check the order of one list to another.
>
> Eg.
> # This is derived from maya.cmds
> list01 = ['cleve', 'adam', 'yuno', 'pete']
>
> # This is derived f
Hi everyone,
I have 2 list items which contains the same amount of items, and I am
trying to check the order of one list to another.
Eg.
# This is derived from maya.cmds
list01 = ['cleve', 'adam', 'yuno', 'pete']
# This is derived from dictionary keys in a way it is capturing the same
info fr