> How do I split a string like "Hans" into a list of characters > ['H','a','n','s']? [snip]
well you could write your own function... def splititems(itemlist): templist = [] for item in itemlist: templist.append(item) return templist print splititems("Hello") or even def splititems(itemlist): return [item for item in itemlist] print splititems("Hello") well I have to go, I hope that helps you. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor