1.

What are string literals? Explain?

Answer»

String Literals:

In Python a string literal is a sequence of characters surrounded by quotes. Python supports single, double and triple quotes for a string. A character literal is a single character surrounded by single or double quotes. The value with triple – quote is used to give

multi – line string literal.

Strings = “This is Python”

char = “C

multiline _ str = “This is a multiline string with more than one line code”.



Discussion

No Comment Found