Python does not support a character type, these are treated as strings of length one, also considered as a substring.
You can use square brackets for slicing along with the index or indices to obtain a substring.
var1 = "Guru99!" var2 = "Software Testing" print ("var1[0]:",var1[0]) print ("var2[1:5]:",var2[1:5])