Character literal
A character literal is the representation of a character value within the source code of a computer program. Languages that have a character data type generally have character literals; these include C, C++, Java, and Visual Basic, but not Python. A common convention is to use a single quote ('
) for character literals and a double quote ("
) for string literals. For example, 'a'
indicates the single character a
while "a"
indicates the string a
of length 1.