title: Why do backslashes appear twice in dict?
body: <p>When I create a string containing backslashes, they get duplicated:</p>
  <p><strong>NOTE : I want to add <code>\</code> in request because i want to call third party API and they want me to send request with <code>\</code> in some of their keys.</strong></p>
  <p>I have taken reference from this answer <a href="https://stackoverflow.com/questions/24085680/why-do-backslashes-appear-twice">Why do backslashes appear twice?</a>, but its working only for string, not for dict.</p>
  <pre><code>mystr = {&quot;str&quot;: &quot;why\does\it\happen?&quot;}
  print(mystr)
  
  output:
  {'str': 'why\\does\\it\\happen?'}
  </code></pre>
  <p>here i am attching a screenshot for better understanding.
  <a href="https://i.stack.imgur.com/Ijthq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ijthq.png" alt="enter image description here" /></a></p>