title: Wrapping around on a list when list index is out of range
body: <p>I'm looking for some code improvement, or a pre-built version of what I've implemented myself as I think there might be, or should be, a cleaner way to achieve what I want.</p>
  
  <p>I'm writing a piece of software to convert guitar tabs into classical notation, I need to convert the number on a tab to it's corresponding note and it would be useful for building a list of each strings note from the starting string.</p>
  
  <p>I have a list of notes, (a - g#) and a list of frets (0, 21).</p>
  
  <p>Notes[fret] works fine for the first eleven notes but after that I obviously get an out of index error.</p>
  
  <p>The code I have to get around this is here:</p>
  
  <pre><code>notes = ["a", "a#", "b", "c", "c#", "d", "e", "f", "f#", "g", "g#"]
  note = 21
  while note &gt;= len(notes):
      note -= 11
      try:
          print notes[note]
      except:
          continue
  </code></pre>
  
  <p>It works but it seems a little long, is there a better way to do this?</p>