[BangPypers] Sort names in a list by order of importance

Gora Mohanty gora at mimirtech.com
Tue Apr 24 05:41:18 CEST 2012

On 24 April 2012 01:13, S Pratap Singh <kdarious at gmail.com> wrote:

> Above works fine but in the scenario mentioned below it fails :
>>>> mylist = ["Alan","aLan","alAn","alaN","ALan","AlAn","AlaN","aLAn","aLaN",*"alAN"*]

This is a syntax error. What do you mean by the asterisks?

> The desired output should be like this :
> [ *"alAN"*, "aLaN", "aLAn", "AlaN", "AlAn", "ALan", "alaN", "alAn",
> "aLan", "Alan" ]

Could you define the desired sort order in words. This
is not making sense to me.


More information about the BangPypers mailing list