In the list exercises, I noticed strings defined with both single and double quotation marks. Are the single quotation marks reserved for characters such as
listofhchars = ['a', 'b', 'c']
and the double quotations are reserved for strings such as
listofstrings = ["List item 1", "List item 2", "List item 3"]
I looked up the following reference but didn't understand the meaning:
In plain English: Both types of literals can be enclosed in matching single quotes (') or double quotes ("). They can also be enclosed in matching groups of three single or double quotes (these are generally referred to as triple-quoted strings). The backslash () character is used to escape characters that otherwise have a special meaning, such as newline, backslash itself, or the quote character.
Bytes literals are always prefixed with 'b' or 'B'; they produce an instance of the bytes type instead of the str type. They may only contain ASCII characters; bytes with a numeric value of 128 or greater must be expressed with escapes.