On 24 April 2012 01:13, S Pratap Singh <[email protected]> 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. Regards, Gora _______________________________________________ BangPypers mailing list [email protected] http://mail.python.org/mailman/listinfo/bangpypers
