what are two internal subtypes of string data in python
Home
/
Computer Science
/
what are two internal subtypes of string data in python
what are two internal subtypes of string data in python
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
The internal subtype of string data in python is Docstring.
Explanation:
The 'Python Docstring' is the 'documentation string' which is of type string literal. Python documentation string (or docstrings) gives an appropriate way of expressing documentation with Python classes, methods, functions, and modules.
The docstring is just a multi-line string that is not allocated to anything. It is defined in the source code used to document a particular portion of the code. One-line Docstrings and multi-line Docstrings are two types of writing a Docstring.
Answer:
There are 2 types of strings supported by python. Strings stored as characters and stored as bytes. Strings stored as characters are represented as unicode in python 2 or str in python 3. Specifying a unicode string can be done by adding 'u' before string.
Explanation:
Please mark me as brainliest