Hey, I am doing some calculations. I wanted to print the following string as pretty_print:
s = 'L*P**2*Q**3{-b*l*conjugate(p)|00\ + -a*p*q**3|11\}'
One way I could think is to apply parse_expr first and then pretty print but it can't take '\'s and brackets (Is there any way to ignore these characters or take them as symbols?). Other way I tried is to parse the string in parts (so that I can ignore the unparsable characters by not parsing them and print them later separately) and then pretty_print them with spaces between them. But I couldn't find any way to pretty print multiple expressions or strings with spaces between them. I tried doing pretty_print(L*P**2*Q**3), pretty_print('{'). But it's still printing newlines between them.