title: IndexError: list index out of range (I think issue with split(',') in python 3.6)
body: <p>I'm totally new to python. I'm reading two sensor (temperature and microphone) values from Arduino UNO. The data format is like 25.3,392.9 (temperature value and microphone value respectively). The data I get through serial communication is stored in a string called "DataArray". Whenever I try to output DataArray[1], it gives me an error.</p>
  
  <pre><code>import serial
  import matplotlib.pyplot as plt
  import numpy
  from drawnow import *
  from tkinter import *
  
  arduinoData = serial.Serial('/dev/cu.usbmodemFD121', 9600)
  
  while True:
    while (arduinoData.inWaiting()==0):
      pass
  
    DataString = arduinoData.readline()
  
    DataArray = DataString.decode().split(',')
  
  
    print(DataArray[1])
  </code></pre>
  
  <p>This is what I get from inserting </p>
  
  <pre><code>print(DataArray)
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>['21.48', '392.00\n'] 
  ['\r\n']
  </code></pre>