title: Python regex error with tuple. Works with list. Bad escape (end of pattern)
body: <p>I have a <strong>list</strong> inside a dictionary that holds regex expressions and the program runs as expected. However, when I turn the list into a <strong>tuple</strong> I get error bad escape (end of pattern) at position 0. </p>
  
  <p>The below gives the error. </p>
  
  <pre><code>import re
  
  phone_num = '660-349-6829'
  
  dict20 = {"phone": (r'\d{3}[-\.\s]??\d{3}[-\.\s]??\d{4}|\(\d{3}\)\s*\d{3}[-\.\s]??\d{4}|\d{3}[-\.\s]??\d{4}')}
  
  for k in dict20["phone"]:
      print(k)
      results = re.findall(k, phone_num)
      print(results)
  
  
  self.string, len(self.string) - 1) from None
  sre_constants.error: bad escape (end of pattern) at position 0
  </code></pre>
  
  <p>This works fine (note list instead of tuple).</p>
  
  <pre><code>import re
  
  phone_num = '660-349-6829'
  
  dict20 = {"phone": [r'\d{3}[-\.\s]??\d{3}[-\.\s]??\d{4}|\(\d{3}\)\s*\d{3}[-\.\s]??\d{4}|\d{3}[-\.\s]??\d{4}']}
  
  for k in dict20["phone"]:
      print(k)
      results = re.findall(k, phone_num)
      print(results)
  </code></pre>