split string python take first 3 element code example Example: python split by first match s.split('mango', 1)[1]