I am writing a program to sort a list fo input strings (song names). Those songnames contains latex chars like $\\lambda$, which i want to get sorted like \'lambda\' instead, s
The point is that you should use r'$\lambda$' moreover when you print the list it print a repr of each element to print
r'$\lambda$'
you should do
from __future__ import print_function print (*mlist)