- Learn Python in 7 Days
- Mohit Bhaskar N. Das
- 73字
- 2025-04-04 19:20:06
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.