def splitline(text):
 index = (text.find('\n') + 1)
 if index:
  return (text[:index], text[index:])
 else:
  return (text, '')

def splitline ( text ) : index = ( text . find ( '\n' ) + 1 ) if index : return ( text [ : index ] , text [ index : ] ) else : return ( text , '' )
splits the given text at newline .