def line_prefix(prefix, string):
 return '\n'.join(((prefix + x) for x in string.splitlines()))

def line_prefix ( prefix , string ) : return '\n' . join ( ( ( prefix + x ) for x in string . splitlines ( ) ) )
return string with all lines prefixed by prefix .