Computer Science
How are string-literals represented and implemented in Python ?
Python Funda
62 Likes
Answer
A string-literal is represented as a sequence of characters surrounded by quotes (single, double or triple quotes). String-literals in Python are implemented using Unicode.
Answered By
31 Likes
Related Questions
Which argument of print( ) would you set for:
(i) changing the default separator (space) ?
(ii) printing the following line in current line ?Can nongraphic characters be used in Python ? How ? Give examples to support your answer.
How are floating constants represented in Python ? Give examples to support your answer.
Which of these is not a legal numeric type in Python ? (a) int (b) float (c) decimal.