हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा १२

What are string literals? Explain. - Computer Science

Advertisements
Advertisements

प्रश्न

What are string literals? Explain.

टिप्पणी लिखिए

उत्तर

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–the 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”.

shaalaa.com
Tokens
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: Python - Variables and Operators - Evaluation [पृष्ठ ६६]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 12 TN Board
अध्याय 5 Python - Variables and Operators
Evaluation | Q 5. | पृष्ठ ६६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×