title: Python interpreter defining variable as tulpe when it's a string?
body: <p>I found this code on the internet, meant to search through text files in a zipped folder to find matches. I ran it in IDLE to see how it worked.. but I have a problem, and it seems to be this line:</p>
  
  <pre><code>fname = seed + ".txt"
  </code></pre>
  
  <p>The error message returns this: </p>
  
  <pre><code>Traceback (most recent call last):
  File "C:/Users/[name]/AppData/Local/Programs/Python/Python36-32/zip2.py", line 10, in &lt;module&gt;
  fname = seed + ".txt"
  TypeError: can only concatenate tuple (not "str") to tuple
  </code></pre>
  
  <p>Here is the code:</p>
  
  <pre><code>import re
  from zipfile import *
  findnothing = re.compile(r"Next nothing is (\d+)").match
  comments = []
  z = ZipFile("channel.zip", "r")
  
  seed = "90052"
  
  while True:
      fname = seed + ".txt"
      comments.append(z.getinfo(fname).comment)
      guts = z.read(fname)
      m = findnothing(guts.decode('utf-8'))
      if m:
          seed = m.groups(1)
      else:
          break
   print("".join(comments))
  </code></pre>
  
  <p>I've searched stackoverflow, and have found nothing similar to my issue. Most of them state that a comma in a variable usually causes the compiler to treat it as a tuple. I don't understand why it is saying seed is a tuple. There is no comma, no parenthesis, or anything else that would define it as a tuple to the Python compiler. How can I fix this?</p>
  
  <p>Thanks in advance</p>