def split_and_strip_non_empty_lines(text):
 return [line.strip() for line in text.splitlines() if line.strip()]

def split_and_strip_non_empty_lines ( text ) : return [ line . strip ( ) for line in text . splitlines ( ) if line . strip ( ) ]
return lines split by newline .