title: Python String Replace - "\" by "/"
body: <p>I am trying to replace a string here in Python.</p>
  
  <p>This is my Input -</p>
  
  <pre><code>MyString = \\ServerA\DriveB\5.FolderC\A.TXT
  </code></pre>
  
  <p>I want my output to be like this</p>
  
  <pre><code>OutputString = //ServerA/DriveB/5.FolderC/A.TXT
  </code></pre>
  
  <p>I tried the replace method it didn't work. Is there a function that can convert it ? Kindly help me with this.</p>
  
  <p>The Code tried,</p>
  
  <pre><code>MyString = '\\ServerA\DriveB\5.FolderC\A.TXT'
  Output_String = MyString.replace('\', '//')
  print(Output_String)
  </code></pre>
  
  <p>SyntaxError: EOL while scanning string literal</p>