removing text from list delete all after specific character code example Example: python remove everything after character sep = '...' stripped = text.split(sep, 1)[0]