Computer Science, asked by hellowprem2370, 1 year ago

How string literal is represented in Python?

Answers

Answered by sushiladevi4418
1

Answer:

String literals representation in Python.

Explanation:

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 second option is to use triple-quoted strings. These are matching groups of either three double quotes or three single quotes. The three double quotes option is usually used when you need a string that is more than one line long. Such string literals are called multiline string literals.

Similar questions