How are strings literals represented and implemented in python
Answers
Answered by
0
Answer:
How are string-literals represented and implemented in Python ?
String literals are implemented using single quotes or double quotes. Multiline string literals can also be implemented using three single or double quotes
The literals named as 'string' are represented as either single quotes (') or in double-quotes ("). It also represents three single or double quotes which are referred to as 'triple quoted strings' ('").
A string literal is a sequence of zero or more characters enclosed within single quotation marks. The following are examples of string literals: 'Hello, world!' 'He said, "Take it or leave it."'
Similar questions