What can you do with a string?

The full list of string methods is in Python Library Reference. Here's an idea of how you might use and combine these methods to carry out common operations.

Create a string:

Access a character from a string:

(Note that each individual character in a string is itself a string — albeit of length 1.)

Access a substring of a string (called a slice in Python):

Adding to a string. Because strings are immutable you cannot change the contents of one, but you can create a new one and assign it to the same name (which has the effect of replacing the old string object with a new one).

Getting information about a string and its contents:

Miscellaneous commands you should try out (because they will probably be useful on assignments!):