0

I have a list like this:

['abaissement\t[n.m] - recessione [n]\n', 'abaisser\t[vblex] - abbassare [vblex]\n', 'abandon\t[n] - abbandono [n]\n']

The first word of each item is sorted alphabetically and this is the one I want to find. By find I hear return the index of the word.

Should I reorganize my list, or is there an clean and quick (because the list has 6000 items) way to do this?

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Simon
  • 6,025
  • 7
  • 46
  • 98
  • As well as [Most pythonic way to find number index in a sorted list?](http://stackoverflow.com/q/11290767) – Martijn Pieters May 19 '14 at 19:29
  • It works if I search only the first word, but when I do this : print bisect(b, 'recessione') I have : 3, why? – Simon May 19 '14 at 19:53

0 Answers0