how to remove strings after a cahracter in python code example Example: drop all characters after a character in python sep = '...' stripped = text.split(sep, 1)[0]