how to split for the first match only code example Example: python split by first match s.split('mango', 1)[1]