phrase = "Duke will beat UNC" b = phrase.split() print b ['Duke', 'will', 'beat', 'UNC'] b.append("on") print b ['Duke', 'will', 'beat', 'UNC', 'on'] b = b + "Saturday" Traceback (most recent call last): File "C:\Users\Susan\AppData\Local\Enthought\Canopy\App\appdata\canopy-2.1.3.3542.win-x86_64\lib\site-packages\IPython\core\interactiveshell.py", line 2885, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in b = b + "Saturday" TypeError: can only concatenate list (not "str") to list b = b + ["Saturday"] print b ['Duke', 'will', 'beat', 'UNC', 'on', 'Saturday'] c = " ".join(b) print c Duke will beat UNC on Saturday c = "-".join(b) print c Duke-will-beat-UNC-on-Saturday print b ['Duke', 'will', 'beat', 'UNC', 'on', 'Saturday'] c = " YES ".join(b) print c Duke YES will YES beat YES UNC YES on YES Saturday estr = "earthquake, 1.3, 81km SSW of Kobuk, Alaska" b = estr.split() print b ['earthquake,', '1.3,', '81km', 'SSW', 'of', 'Kobuk,', 'Alaska'] b = estr.split(",") print b ['earthquake', ' 1.3', ' 81km SSW of Kobuk', ' Alaska'] b = estr.split(", ") print b ['earthquake', '1.3', '81km SSW of Kobuk', 'Alaska'] c = [b[0], b[1], b[2:]] print c ['earthquake', '1.3', ['81km SSW of Kobuk', 'Alaska']] c = [b[0], b[1], ", ".join(b[2:])] print c ['earthquake', '1.3', '81km SSW of Kobuk, Alaska']