5. String Data Type
Strings are used to record the text information
such as name. In Python, Strings act as Sequence
which means Python tracks every element in the String as a sequence. This is one of the important features of the Python language.
For example, Python understands the string “hello' to be a sequence of letters
in a specific order which means the indexing technique to grab particular letters
(like first letter or the last letter).
Note:
In most of other languges like C, C++,Java, a single character
with in single quotes is treated as char data type
value.
But in Python we are not having char data type
. Hence it is treated as String only.