The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.
Discover the best professional documents and content resources in AnyFlip Document Base.
Published by oscar.gracias, 2019-12-02 23:43:08

Chapter 4: Working with text

Chapter 4

Exercises • 75

• Python uses type str to represent text as sequences of characters.
• Strings are created by placing pairs of single or double quotes around the

text. Multillne strings can be created uslng matchlng pairs of triple quotes.

• Special characters like newline and tab are represented uslng escape
sequences that begln with a backslash.

• Values can be printed uslng built-in function print, and input can be pro­
vided by the user using built-in function input.

Click to View FlipBook Version