kartik wrote: > Escape sequences don't seem to work in strings within list comprehensions: > >>>>print ['%s\n' %i for i in [1,2,3]] > > ['1\n', '2\n', '3\n'] > > What am I missing? Other have answered to this question. Just try this instead : print "\n".join(["%d" % i for i in [1,2,3]]) > Thank you. HTH