title: Python Invalid syntax in elif
body: <p>The code below shows in invlid syntax in the first elif statement. I have checked and rechecked my code several times, but cant figure out how to solve the error.</p>
  
  <pre><code>fileHandle = open ( 'gra1.txt' )
  count=0
  count1=0
  fileList = fileHandle.readlines()
  for fileLine in fileList:
      line=fileLine.split()
      if line[0] == '0':
          print "graph G%d {\n", (count)
          count +=1
      elif line[0] == '1':
          print "} \n"
      elif line[0]=='':
          continue
      else:
          count1 += 1
          if count1==1: a=line[0]
          elif count1==2: relation=line[0]
          elif count1==3: b=line[0]
          else:
              print a, relation, b
              count1=0
  fileHandle.close()
  </code></pre>