You’re right, see 3.1.3. Unicode Strings.
It’s been the syntax since Python 2.0.
Python 3 made them redundant, as the default string type is Unicode. Versions 3.0 through 3.2 removed them, but they were re-added in 3.3+ for compatibility with Python 2 to aide the 2 to 3 transition.
More Related Contents:
- The letter ‘n’ is invalid syntax in Python? [closed]
- Is there a way to declare all the values in the list as a list individually in python [closed]
- What does ** (double star/asterisk) and * (star/asterisk) do for parameters?
- What is the difference between ‘/’ and ‘//’ when used for division?
- What is the result of % in Python?
- Accessing dict keys like an attribute?
- Why does adding a trailing comma after a variable name make it a tuple?
- What does a b prefix before a python string mean?
- What does preceding a string literal with “r” mean? [duplicate]
- What does “while True” mean in Python?
- Putting an if-elif-else statement on one line?
- When are parentheses required around a tuple?
- Which is more preferable to use: lambda functions or nested functions (‘def’)?
- Python Script returns unintended “None” after execution of a function [duplicate]
- Python “raise from” usage
- What does ‘wb’ mean in this code, using Python?
- Is it possible to get a list of keywords in Python?
- Is there a difference between continue and pass in a for loop in Python?
- Recursively access dict via attributes as well as index access?
- Why does python use two underscores for certain things?
- What is the purpose of the colon before a block in Python?
- Python print statement “Syntax Error: invalid syntax” [duplicate]
- How to include a double-quote and/or single-quote character in a raw Python string literal?
- How to tell if a string contains valid Python code
- What does the ** maths operator do in Python?
- Python Syntax Errors with Python Anywhere
- Why does newList = list.remove(x) return None? [duplicate]
- str.format() raises KeyError
- How can I diagnose common errors in JSON data?
- How do I get a decimal value when using the division operator in Python?