In Python, str is the datatype for characters or Unicode characters. The string is initialized with the set of characters in between single-quotes or double-quotes.
Examples:
firstName = 'john'
lastName = 'cena'
print('The datatype of firstName is: ', type(firstName))
print('The datatype of lastName is: ', type(lastName))
output:
The datatype of firstName is: <class 'str'>
The datatype of lastName is: <class 'str'>
You can check out this Python Tutorial by Intellipaat to understand in-detail about Datatypes in Python.
Also, watch this video on Python data types: