remove everything before a part of a string python code example Example: python remove everything after character sep = '...' stripped = text.split(sep, 1)[0]