Computer Science, asked by nandanv99, 10 months ago

what are two internal subtypes of string data in python

Answers

Answered by steffis
4

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.

Answered by ashwina888
3

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

Similar questions