title: Readin a .txt file and put the elements in a list (Python)
body: <p>Im new in Python and i need some help. i got a .txt file in this form:</p>
  
  <pre><code>Time[tab]Signal
  
  0[tab]1.05
  
  0.5[tab]1.06
  
  1[tab]1.09
  
  1.5[tab]1.12
  </code></pre>
  
  <p>Now i want to read in the file. I need two lists. List1 should contain the time and list2 should contain the signal. </p>
  
  <p>This is my try:</p>
  
  <pre><code>daten = open("extedit.txt", "r")
  lines = daten.readlines();
  list1 = []
  
  for i in lines:
      list1.append(i.strip().split('\t'));
  daten.close()
  
  del list1[1]
  print(list1)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/9rluy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9rluy.png" alt="thats the form at my txt file"></a></p>
  
  <p>Something went wrong i think.. maybe you can help me</p>
  
  <p>i got this in my terminal:
  <code>
  [['{\rtf1\ansi\ansicpg1252\cocoartf1504\cocoasubrtf760'], ['{\colortbl;\red255\green255\blue255;}'], ['{\*\expandedcolortbl;;}'], ['\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0'], ['\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural\partightenfactor0'], [''], ['\f0\fs24 \cf0 Zeit', 'Signal\'], ['0.01', '1.1\'], ['0.02', '1.105\'], ['0.03', '1.108\'], ['0.04', '1.2\'], ['0.05', '1.205\'], ['0.06', '1.209}']]
  </code></p>