Talk:Python Programming/Strings

How do I split a string into individual characters in a list

'hello' into  ['h','e','l','l','o']

Answer:

str = 'hello' list( str )

from http://www.faqts.com/knowledge_base/view.phtml/aid/39575/fid/480

How do you deal with contractions when using title case?

For example '.title("saint john's")' yields "Saint John'S" instead of "Saint John's"

Changed "isalnum returns True if the string is entirely composed of alphabetic or numeric characters (i.e. no punctuation)." to "isalnum returns True if the string is entirely composed of alphabetic and/or numeric characters (i.e. no punctuation)."

Only change is the addition of "and/" which removes the ambiguity, making it obvious that this is inclusive. Daemonax (talk) 05:25, 14 October 2009 (UTC)