demo_type_str2.py:
x = str("Hello World") #display x: print(x) #display the data type of x: print(type(x))
C:\Users\My Name>python demo_type_str2.py
Hello World
<class 'str'>