Tutorial Series

Working with Strings in Python 3

A string is a sequence of one or more characters (letters, numbers, symbols) that can be either a constant or a variable. Made up of Unicode, strings are immutable sequences, meaning they are unchanging. Because text is such a common form of data that we use in everyday life, the string data type is a very important building block of programming. This tutorial series will go over several of the major ways to work with and manipulate strings in Python 3.
  1. An Introduction to Working with Strings in Python 3

    September 15, 2016
    This Python tutorial will go over the basics of working with strings, including how to create and print strings, concatenate and replicate strings, and store strings in variables.
  2. How To Format Text in Python 3

    September 15, 2016
    In this tutorial, we’ll go over some of the ways we can work with Python strings to make sure that all output text is formatted correctly. Quotes, apostrophes, multiple lines, escape characters, and raw strings will be covered.
  3. An Introduction to String Methods in Python 3

    September 20, 2016
    Python has several built-in methods associated with the string data type. These methods let us easily modify and manipulate strings. We can think of methods as being actions that we perform on elements of our code. Built-in methods are those that are defined in the Python...
  4. How To Index and Slice Strings in Python 3

    September 28, 2016
    The Python string data type is a sequence made up of one or more individual characters that could consist of letters, numbers, whitespace characters, or symbols. Because a string is a sequence, it can be accessed in the same ways that other sequence-based data types are,...