printing backslash

micklee74 at hotmail.com micklee74 at hotmail.com
Wed Jun 7 13:00:10 EDT 2006


hi
how can i sucessfully print  |\|  in the output of a print command

a = "|\|"
print a

but it gives me "|\\|"

i tried raw strings too, but it doesn't print |\| . It prints |\\|
instead

eventually, i also want |\| to be inside a list:
alist = ["|\|", 'blah', 'blah'] . How can i put |\| inside a list?

can someone show me how it can be done?
thanks




More information about the Python-list mailing list