title: Issue with Python Script
body: <p>I'm having an issue with my code where I get the output of:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):<br>
    File "1stHour.py", line 48, in <br>
    ws1.cell(column=1, row=i, value="%s" % blue_student_list[i])<br>
    IndexError: list index out of range`  </p>
  </blockquote>
  
  <pre><code># coding=utf:8
  from pythonzenity import Message
  from openpyxl.styles import PatternFill
  from openpyxl import Workbook
  import bluetooth
  import time
  
  
  
  def student_check(index):
      result = bluetooth.lookup_name(blue_address_list[index], timeout=3)
      if (result is not None):
          return True
      else:
          return False
  
  blue_student_list = ['Name', 'Name2']
  blue_address_list = ['Address', 'Address2']
  
  
  redFill = PatternFill(start_color='FF0000', end_color='FF0000', fill_type='solid')
  greenFill = PatternFill(start_color='00FF00', end_color='00FF00', fill_type='solid')
  
  
  for i in range(0, len(blue_address_list)):
  
      i = i + 1
  
      ws1.cell(column=1, row=i, value="%s" % blue_student_list[i])
      if (student_check(i)):
         ws1.cell(column=2, row=i, value="%s" % "Present").fill = greenFill
      else:
         ws1.cell(column=2, row=i, value="%s" % "Absent").fill = redFill
  
  
  Message(title="Attendance Checker",text="You can now open the Excel Document on your Desktop", timeout=3000)
  </code></pre>
  
  <p>I had this working but forgot to save it, so I don't have the correct way I had it before on here anymore. What can I do to prevent this error? I feel like I'm forgetting something or writing in the <code>i = i + 1</code> part on my code.</p>