manyspikes

Strings

Initialising environment...

A string is the data type used to handle text in Python.

To define a string, you can simply type a sequence of characters enclosed in single, double or triple quotes. Triple quoted strings can span multiple lines:

x = "one" y = 'two' z = """three and four!""" print(x) print(y) print(z)

which prints:

one
two
three and
four!

Instructions

Define a variable called message and set it to the value "Process completed."