#!/usr/bin/python a = "He found it boring and he left" loc = a.find("boring") a = a[:loc] + "fun" print a b = ' and '.join(["cars", "trucks", "motorcycles"]) print b c = b.split() print c d = b.split(" and ") print d