title: How to link list elements from 2nd to last element in Python
body: <p>I am trying to extract the time and signal change from a <code>.vcd</code> file (Value change dump) in Python for analysis.</p>
  
  <p>What I got：</p>
  
  <pre><code># 100 (this is the timestamp)
  ['0', '#', '%']
  ['1', '@', '!']
  </code></pre>
  
  <p>What I hope to get：</p>
  
  <pre><code># 100
  ['0', '#%']
  ['1', '@!']
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>import re
  fname = input("Enter filename: ")
  vcd = open(fname)
  
  for line in vcd:
      line = line.rstrip()
  
      if re.findall('^#', line):
              time = line
              print(time)
  
      elif  re.findall('^0', line) or re.findall('^1', line):
              sigVar = list(line)
              for i in sigVar[1:]:
                      ''.join(sigVar)
  
              print(sigVar)
  </code></pre>
  
  <p>I couldn't join the elements in sigVar together. Any idea?</p>