Learn Python in 7 Days
上QQ阅读APP看书,第一时间看更新

String data types

A Python string is a contiguous sequence of Unicode characters. Single quotes or double quotes can be used to denote a string, as we saw in Chapter 1, Getting Started with Python. For multiline string representation, ''' or """ can be used.

Syntax:

<variable name>= <String sequence> 

You will understand better with the following screenshot:

More details on strings, tuples, list, and dictionary will be covered in the coming chapters.