title: Extra '\' character in string python
body: <p>I am trying to get user input as parameter on my function. I did this :</p>
  
  <p>on <strong>Utilities.py</strong></p>
  
  <pre><code>def EnterVersion()
      gVer = ""
      tgVer = ""
      while True:
            gVer = input(" Enter game version : ")
            if gVer ='':
               tgVer = tgVer[:-1]
               break
            else:
              gVer = '\'' + gVer + '\'' + ','
              tgVer += gVer
  
      tgVer = "\"(%s)\""%tgVer
      print(tgVer)
      return tgVer
  </code></pre>
  
  <p>on <strong>a.py</strong></p>
  
  <pre><code>game_version = ""
  
  def getGameVersion()
      game_version = utilities.EnterVersion()
      return game_version
  </code></pre>
  
  <p>When user input like this :</p>
  
  <blockquote>
    <p>Enter game version : 1<br>
    Enter game version : 2</p>
  </blockquote>
  
  <p>EDIT :<br>
  I am using VS for Python<br>
  The output from the script (on the command line) is good :  </p>
  
  <blockquote>
    <p>"('1','2')"  </p>
  </blockquote>
  
  <p>But, when I put watch on the variable, it went this way :<br>
  <img src="https://i.stack.imgur.com/czIRH.png" alt="enter image description here"></p>
  
  <p>The output will be like this:</p>
  
  <blockquote>
    <p>"(\'1\',\'2\')"  </p>
  </blockquote>
  
  <p>Without extra '\' on it.  </p>
  
  <p>So, given that input my query (I am using pandas) doesn't ran.  </p>
  
  <p>Because it read the game version as : </p>
  
  <blockquote>
    <p>'\1'\ and '\2\'  , or<br>
    \'1\' and \'2\'</p>
  </blockquote>
  
  <p>I am aware that '\' used to write special character in python.<br>
  But why I got it on mine?<br>
  Anyone can explain to me why I got extra '\' on my string?  </p>