title: why am i getting “inconsistent use of tabs and spaces in indentation”?
body: <p>This is my code:</p>
  
  <pre><code>x = [];
  y = [];
  
  xx = []
  xy = []
  
  
  # variable to show if file openening worked
  
  opened = 0;
  
  # try to open file
  
  try:
      readFile = open('xyData.txt', 'r');
      # if open file worked
      opened = 1;
  
  except:
      # if opening file went wrong
      print('Some error occured!');
  
  #next line same as if opened == 1
  if opened:
      # read in data from the file line by line
  
      for line in readFile:
          # variable line now holds one of the lines
          # in the data file
          # split up in the string 'line' based on whitespace
          splitUp = line.split();
  
  
  
  
  
          # x = splitUp[0], y = splitUp[1]
          # append to arrays for x and y
          x.append(splitUp[0]);
          y.append(splitUp[1]);
          xx.append(splitUp[0]*splitUp[0]);
          xy.append(splitUp[0]*splitUp[1]);
  
  
  
      # close file
      readFile.close();
  
    print('done')
  </code></pre>
  
  <p>There is more to do however at this point I get:</p>
  
  <pre><code>run lobf.py
    File "/Users/paulbebb/Desktop/pyscripts/lobf.py", line 56
      x.append(splitUp[0]);
                       ^
  TabError: inconsistent use of tabs and spaces in indentation
  </code></pre>
  
  <p>and I cannot seem to work out the problem. Thanks in advance.</p>