Working With Strings

As with good code, it is not worth repeating something that has already been done well, so for a list of really useful string functions, see the W3C Guide

For the ultimate guide, see the python language reference section on text processing. This might seem a little daunting at first, but it is the most complete reference

Examples

Case insensitive text comparison

Word counting

Activities

Using the string function guides, try the following activities

  • Create a string of items seperated by commas. Load them into a list using the split function