How can I display a string with its rational expressions, such as ''

Question:

I want to display a rational expression using Python 3. Because it is stored in my variable, it applies the effect of the backslash on my terminal, here is the rational expression I try to display :

struct = "{}"{}"{}{}{}"

So what I am trying to find is an expression that prints all the string, including the ''

Asked By: minimus_maximus

||

Answers:

You can solve it like this:

struct = '{}\"{}\"{}{}{}'
Answered By: Muhammad Ibrahim
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.