def get_lines_containing(word, in_text):
  return [n for n, line in enumerate(in_text.split('\n')) if word.lower()
in line.lower()]



-- 
Andrea
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a