November 2017
Beginner to intermediate
204 pages
5h 23m
English
A value with a string data type is simply a collection of characters. You've already seen a string data type in use from the hello world program that you created earlier, namely, Hello World!. String values are created in Python by writing the contents of a string inside quotation marks:
>> "your string here"
Two or more strings can be merged together or concatenated using the + operator:
>> "string 1 " + "string 2"
I will cover string operations in detail in Chapter 5, Manipulating Text Data - An Introduction to Regular Expressions.
Read now
Unlock full access