>>> a = 'hello' >>> b = [1, 2, 3] >>> b.append(a) >>> b [1, 2, 3, 'hello'] >>> b.extend(a) >>> b [1, 2, 3, 'hello', 'h', 'e', 'l', 'l', 'o'] >>>
Fine.
>>> a = 'hello' >>> b = [1, 2, 3] >>> b.append(a) >>> b [1, 2, 3, 'hello'] >>> b.extend(a) >>> b [1, 2, 3, 'hello', 'h', 'e', 'l', 'l', 'o'] >>>
Fine.