delimiter
The quote marks that mark where a string literal begins and ends; Python accepts either single or double quotes.
In more detail
Use the other kind of quote when the text contains one, as in "I'm happy", or escape it with a backslash. The delimiters are not part of the string, which is why the shell shows them but print does not.
Related terms
- string — A sequence of characters, that is, a piece of text.
- escape sequence — A backslash followed by a character that together stand for something hard to type directly, such as \n for a line break.
- triple-quoted string — A string literal written between three quote marks, ''' or """, which can span several lines.
Taught in
- Editors, IDEs And Shells — Hands-on Python: Complete Video Course & Book
- Strings, Delimiters And Concatenation — Hands-on Python: Complete Video Course & Book
- The Print Function And String Literals — Hands-on Python: Complete Video Course & Book