In Python I have a list of strings, some of which may be the empty string. What\'s the best way to get the first non-empty string?
def get_nonempty(list_of_strings): for s in list_of_strings: if s: return s