title: python - index a split string
body: <p>I am attempting to .index() a string after I split it with .split(). I am setting the split as a variable in order to use it in the index command, but I am not getting an output if I try and print the index.  Here is a bit of the code I am working on:</p>
  
  <pre><code>x_1 = y.split(var_1, 1)[1]
  start1 = x_1.index(var_2)
  print start1
  </code></pre>
  
  <p>x_1 is the string after the split, with y being the initial string I need to split. var_1 is the location I want to split y at and var_2 is where in x_1 I want to index at.  So, start1 is the index location I want to locate within the split string.</p>
  
  <p>I do this but print does not show up in the output. Any help is appreciated.  Thanks</p>