9. String Handling

What is string handling?

String handling refers to the manipulation of a string variable, common uses include:

  • Checking the length of a variable.
  • Searching a variable for a certain phrase.
  • Checking the number of times a specific character or word is used.

In the real-world string handling is used to examine passwords and to ensure that they are of an acceptable strength (by checking that they include a mixture of capital letters, lowercase letters and symbols for example).

Click on the links to discover ways to manipulate strings in Python:

Basic String Handling

Integer Handling

When you have read the pages above and tried the practice task(s) on each page then attempt these:

End of Section Practice Tasks